diff --git a/src/app/dash/page.tsx b/src/app/dash/page.tsx index a4def81..295a2db 100644 --- a/src/app/dash/page.tsx +++ b/src/app/dash/page.tsx @@ -17,26 +17,12 @@ import { useState } from "react"; import { AddDocumentButton } from "@/components/document/AddDocumentButton"; import { removeDocument } from "@/actions/document/removeDocument"; import { useToast } from "@/components/ui/use-toast"; -import { themes } from "@/lib/graph"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; const Dash = () => { const { toast } = useToast(); const { kv, deleteNote, notion, setNotion, google, setGoogle, revalidateNotes } = useNotes(); const [isUpdating, setIsupdating] = useState(false); - const [selectedTheme, setSelectedTheme] = useState("solarizedDark"); - - const handleThemeChange = (value: string) => { - setSelectedTheme(value as typeof selectedTheme); - }; - const onClick = () => { setIsupdating(true); addContribution() @@ -57,28 +43,7 @@ const Dash = () => { return ( // pt-[calc(10vh)]
- - +
*/} - - +
+ + +
+
+ + {!canvasRef.current && ( +
+ )} +
); } diff --git a/src/components/select-theme.tsx b/src/components/select-theme.tsx new file mode 100644 index 0000000..0918575 --- /dev/null +++ b/src/components/select-theme.tsx @@ -0,0 +1,39 @@ +"use client"; + +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; + +interface SelectThemeProps { + handleThemeChange: (value: string) => void; +} + +export default function SelectTheme({ handleThemeChange }: SelectThemeProps) { + return ( + + ); +}