mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
fix(theme) fix warning on ThemeSwitcher.tsx
This commit is contained in:
1 parent
83365be90b
commit
65e7c101ac
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user