1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-08 20:54:23 +01:00

fix errors

This commit is contained in:
Matthias Kretschmann 2020-02-15 14:05:14 +01:00
parent c56cc92cd9
commit 996e05e9da
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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)