Skip to content

Commit c06410a

Browse files
authored
Merge pull request #10 from Infvyr/fix_theme_switcher
Fix theme switcher
2 parents 17bd4d0 + c7f8ef6 commit c06410a

File tree

3 files changed

+303
-299
lines changed

3 files changed

+303
-299
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)