From 65e7c101acea4610eb70cc03b9b7d05ceaae4dcf Mon Sep 17 00:00:00 2001 From: Lumither Tao Date: Wed, 24 Apr 2024 21:15:05 +0800 Subject: [PATCH] fix(theme) fix warning on ThemeSwitcher.tsx --- components/ThemeSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ThemeSwitcher.tsx b/components/ThemeSwitcher.tsx index 347ba43..49f38d0 100644 --- a/components/ThemeSwitcher.tsx +++ b/components/ThemeSwitcher.tsx @@ -6,7 +6,7 @@ import { Button } from '@nextui-org/react'; function ThemeSwitcher() { const [ mounted, setMounted ] = useState(false); - const { theme, setTheme, themes } = useTheme(); + const { setTheme } = useTheme(); useEffect(() => { setMounted(true);