This commit is contained in:
daniel31x13
2024-08-18 16:39:43 -04:00
parent 2b83522eaa
commit 1260e8c093
10 changed files with 268 additions and 272 deletions
+1 -2
View File
@@ -21,9 +21,8 @@ export default function ToggleDarkMode({ className }: Props) {
useEffect(() => {
if (theme) {
updateSettings({ theme });
localStorage.setItem("theme", theme);
}
}, [theme, updateSettings]);
}, [theme]);
return (
<div