Skip to content

Commit c7f8ef6

Browse files
committed
fix theme switcher
1 parent 57ea702 commit c7f8ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ThemeSwitcher.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const ThemeSwitcher = () => {
2121
return (
2222
<LazyMotion features={domAnimation}>
2323
<m.button
24-
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
24+
onClick={() => setTheme(currentTheme === "dark" ? "light" : "dark")}
2525
initial={initial}
2626
animate={animate}
2727
exit={exit}

0 commit comments

Comments
 (0)