From 716d0f08940100d0c247de5035966b2e7d75c153 Mon Sep 17 00:00:00 2001 From: SolitudeRA Date: Tue, 13 Jan 2026 02:35:47 +0900 Subject: [PATCH] feat: theme switch udpate --- src/components/layout/navbar/ThemeSwitch.tsx | 41 +++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/src/components/layout/navbar/ThemeSwitch.tsx b/src/components/layout/navbar/ThemeSwitch.tsx index a63cd65..dd4e050 100644 --- a/src/components/layout/navbar/ThemeSwitch.tsx +++ b/src/components/layout/navbar/ThemeSwitch.tsx @@ -1,7 +1,9 @@ -import { Switch } from '@components/common/switch'; +import * as SwitchPrimitive from '@radix-ui/react-switch'; import { useAtom } from 'jotai'; import { useEffect } from 'react'; +import { Sun, Moon } from 'lucide-react'; import { themeSwitchAtom } from '@stores/themeAtom'; +import { cn } from '@components/common/lib/utils'; export default function ThemeSwitch() { const [theme, setTheme] = useAtom(themeSwitchAtom); @@ -25,5 +27,40 @@ export default function ThemeSwitch() { setTheme(newTheme); }; - return ; + return ( + + + {isLightMode ? ( + + ) : ( + + )} + + + ); }