Skip to content

Commit ebf654d

Browse files
committed
Public Themes
1 parent 77211ec commit ebf654d

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

app/themes/[themeId]/not-found.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default function ThemeNotFound() {
77
<div className="text-center">
88
<h1 className="text-4xl font-bold mb-4">Theme Not Found</h1>
99
<p className="text-muted-foreground mb-8">
10-
The theme you're looking for doesn\'t exist or you don\'t have
11-
permission to view it.
10+
The theme you&apos;re looking for doesn&apos;t exist or you don&apos;t
11+
have permission to view it.
1212
</p>
1313
<Button asChild>
1414
<Link href="/editor/theme">Return to Editor</Link>

components/theme-provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ type Theme = "dark" | "light";
1010
type ThemeProviderProps = {
1111
children: React.ReactNode;
1212
defaultTheme?: Theme;
13-
toggleTheme: (coords?: Coords) => void;
1413
};
1514

1615
type Coords = { x: number; y: number };

components/theme-view.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { useEffect } from "react";
1717
import { Header } from "./editor/header";
1818
import { Footer } from "@/components/home/footer";
1919
import { toast } from "@/components/ui/use-toast";
20+
2021
export default function ThemeView({ theme }: { theme: Theme }) {
2122
const {
2223
themeState,
@@ -36,13 +37,8 @@ export default function ThemeView({ theme }: { theme: Theme }) {
3637
return () => {
3738
restoreThemeCheckpoint();
3839
};
39-
}, [
40-
theme,
41-
saveThemeCheckpoint,
42-
setThemeState,
43-
themeState,
44-
restoreThemeCheckpoint,
45-
]);
40+
// eslint-disable-next-line react-hooks/exhaustive-deps
41+
}, [theme, saveThemeCheckpoint, setThemeState, restoreThemeCheckpoint]);
4642

4743
if (!theme) {
4844
notFound();

0 commit comments

Comments
 (0)