We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57ea702 commit c7f8ef6Copy full SHA for c7f8ef6
components/ThemeSwitcher.jsx
@@ -21,7 +21,7 @@ export const ThemeSwitcher = () => {
21
return (
22
<LazyMotion features={domAnimation}>
23
<m.button
24
- onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
+ onClick={() => setTheme(currentTheme === "dark" ? "light" : "dark")}
25
initial={initial}
26
animate={animate}
27
exit={exit}
0 commit comments