File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ export default function ThemeNotFound() {
7
7
< div className = "text-center" >
8
8
< h1 className = "text-4xl font-bold mb-4" > Theme Not Found</ h1 >
9
9
< p className = "text-muted-foreground mb-8" >
10
- The theme you're looking for doesn't exist or you don't have
10
+ The theme you're looking for doesn\ 't exist or you don\ 't have
11
11
permission to view it.
12
12
</ p >
13
13
< Button asChild >
14
- < Link href = "/dashboard " > Return to Dashboard </ Link >
14
+ < Link href = "/editor/theme " > Return to Editor </ Link >
15
15
</ Button >
16
16
</ div >
17
17
</ main >
Original file line number Diff line number Diff line change @@ -267,7 +267,6 @@ const ThemePresetSelect: React.FC<ThemePresetSelectProps> = ({
267
267
currentPreset ,
268
268
themeState . styles ,
269
269
presets ,
270
- value ,
271
270
] ) ;
272
271
273
272
return (
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import {
17
17
TooltipContent ,
18
18
TooltipTrigger ,
19
19
} from "@/components/ui/tooltip" ;
20
- import { ActionBar } from "./action-bar/action-bar" ;
21
20
22
21
const DemoCards = lazy ( ( ) => import ( "@/components/examples/demo-cards" ) ) ;
23
22
const DemoMail = lazy ( ( ) => import ( "@/components/examples/mail" ) ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,13 @@ export default function ThemeView({ theme }: { theme: Theme }) {
36
36
return ( ) => {
37
37
restoreThemeCheckpoint ( ) ;
38
38
} ;
39
- } , [ theme ] ) ;
39
+ } , [
40
+ theme ,
41
+ saveThemeCheckpoint ,
42
+ setThemeState ,
43
+ themeState ,
44
+ restoreThemeCheckpoint ,
45
+ ] ) ;
40
46
41
47
if ( ! theme ) {
42
48
notFound ( ) ;
You can’t perform that action at this time.
0 commit comments