Fix bug with Shortcuts Modal & added missing useEffect dependencies
This commit is contained in:
@@ -17,7 +17,7 @@ export const ThemeChanger = () => {
|
||||
} else {
|
||||
setTheme('light')
|
||||
}
|
||||
}, [])
|
||||
}, [setTheme])
|
||||
|
||||
const themeSwitchHandler = () => {
|
||||
const newTheme = theme === 'light' ? 'dark' : 'light'
|
||||
|
||||
Reference in New Issue
Block a user