Fix bug with Shortcuts Modal & added missing useEffect dependencies

This commit is contained in:
blessedcoolant
2022-04-08 17:04:55 +12:00
parent c3315a2d2b
commit 4d118698b4
3 changed files with 14 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ export const ThemeChanger = () => {
} else {
setTheme('light')
}
}, [])
}, [setTheme])
const themeSwitchHandler = () => {
const newTheme = theme === 'light' ? 'dark' : 'light'