mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 23:44:09 +02:00
fix: lint issues
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
c81d9246c4
commit
975ccaa7b6
@@ -51,7 +51,7 @@ const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
|||||||
prefersLightTheme.onchange = null
|
prefersLightTheme.onchange = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [])
|
}, [localTheme])
|
||||||
|
|
||||||
const contextValue = useMemo(
|
const contextValue = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
@@ -63,7 +63,7 @@ const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
|||||||
setLocalTheme(newTheme)
|
setLocalTheme(newTheme)
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
[theme, setTheme]
|
[theme, setTheme, setLocalTheme]
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user