mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-08 20:54:23 +01:00
fix errors
This commit is contained in:
parent
c56cc92cd9
commit
996e05e9da
@ -58,8 +58,8 @@ function ThemeSwitch() {
|
||||
classNameDark: 'dark',
|
||||
classNameLight: 'light'
|
||||
})
|
||||
const [themeColor, setThemeColor] = useState()
|
||||
const [bodyClass, setBodyClass] = useState()
|
||||
const [themeColor, setThemeColor] = useState('')
|
||||
const [bodyClass, setBodyClass] = useState('')
|
||||
|
||||
useEffect(() => {
|
||||
setBodyClass(value ? 'dark' : null)
|
||||
|
Loading…
Reference in New Issue
Block a user