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