@@ -4,7 +4,7 @@ import { notFound } from "next/navigation";
4
4
import type { Theme } from "@/types/theme" ;
5
5
import ThemePreviewPanel from "./editor/theme-preview-panel" ;
6
6
import { Button } from "@/components/ui/button" ;
7
- import { Share , Sun , Moon , MoreVertical , Edit , Copy } from "lucide-react" ;
7
+ import { Share , Sun , Moon , MoreVertical , Edit } from "lucide-react" ;
8
8
import {
9
9
DropdownMenu ,
10
10
DropdownMenuContent ,
@@ -17,6 +17,7 @@ import { useEffect } from "react";
17
17
import { Header } from "./editor/header" ;
18
18
import { Footer } from "@/components/home/footer" ;
19
19
import { toast } from "@/components/ui/use-toast" ;
20
+
20
21
export default function ThemeView ( { theme } : { theme : Theme } ) {
21
22
const {
22
23
themeState,
@@ -36,13 +37,8 @@ export default function ThemeView({ theme }: { theme: Theme }) {
36
37
return ( ) => {
37
38
restoreThemeCheckpoint ( ) ;
38
39
} ;
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 ] ) ;
46
42
47
43
if ( ! theme ) {
48
44
notFound ( ) ;
@@ -87,7 +83,7 @@ export default function ThemeView({ theme }: { theme: Theme }) {
87
83
< Moon className = "size-4" />
88
84
) }
89
85
</ Button >
90
- < Button variant = "outline" size = "default" >
86
+ < Button variant = "outline" size = "default" onClick = { handleShare } >
91
87
< Share className = "size-4" />
92
88
Share
93
89
</ Button >
@@ -105,10 +101,6 @@ export default function ThemeView({ theme }: { theme: Theme }) {
105
101
< Edit className = "size-4" />
106
102
Open in Editor
107
103
</ DropdownMenuItem >
108
- < DropdownMenuItem onClick = { handleShare } className = "gap-2" >
109
- < Copy className = "size-4" />
110
- Copy URL
111
- </ DropdownMenuItem >
112
104
</ DropdownMenuContent >
113
105
</ DropdownMenu >
114
106
</ div >
0 commit comments