improved themeswitcher button indicating

main
Midnight 3 years ago
parent f9acc0019a
commit 81d8c5c92b

@ -16,9 +16,17 @@ export default function ThemeToggle() {
window.localStorage.setItem("theme", activeTheme);
}, [activeTheme]);
if(activeTheme == 'light') {
return (
<a onClick={() => setActiveTheme(inactiveTheme)} href="#">
<span>🌙</span>
</a>
)
} else {
return (
<a onClick={() => setActiveTheme(inactiveTheme)} href="#">
<span></span>
</a>
)
}
}
Loading…
Cancel
Save