Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
braddf committed Jul 22, 2024
1 parent b76476b commit b8a6ffa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
6 changes: 5 additions & 1 deletion apps/quartz-app/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import * as Sentry from "@sentry/nextjs";
import NextError from "next/error";
import { useEffect } from "react";

export default function GlobalError({ error }: { error: Error & { digest?: string } }) {
export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
Expand Down
2 changes: 1 addition & 1 deletion apps/quartz-app/src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Main = () => {
useEffect(() => {
console.log("combinedData updated", latestCombinedData);
setCombinedData(latestCombinedData);
}, [latestCombinedData]);
}, [setCombinedData, latestCombinedData]);

const isLoading = useMemo(() => {
return (
Expand Down
14 changes: 7 additions & 7 deletions apps/quartz-app/src/hooks/useUserMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export const useUserMenu = () => {
setShowUserMenu(false);
}
};
const handleProfileDropdownToggle = () => {
if (showUserMenu) {
window.onkeydown = handleEscape;
} else {
window.removeEventListener("keydown", handleEscape);
}
};

useEffect(() => {
const handleProfileDropdownToggle = () => {
if (showUserMenu) {
window.onkeydown = handleEscape;
} else {
window.removeEventListener("keydown", handleEscape);
}
};
console.log("showProfileDropdown", showUserMenu);
handleProfileDropdownToggle();
}, [showUserMenu]);
Expand Down
8 changes: 4 additions & 4 deletions apps/quartz-app/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await import('../sentry.server.config');
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("../sentry.server.config");
}

if (process.env.NEXT_RUNTIME === 'edge') {
await import('../sentry.edge.config');
if (process.env.NEXT_RUNTIME === "edge") {
await import("../sentry.edge.config");
}
}

0 comments on commit b8a6ffa

Please sign in to comment.