1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-24 08:33:29 +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', 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)