mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 01:05:58 +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
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
}, [localTheme])
|
||||
|
||||
const contextValue = useMemo(
|
||||
() => ({
|
||||
@@ -63,7 +63,7 @@ const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
||||
setLocalTheme(newTheme)
|
||||
},
|
||||
}),
|
||||
[theme, setTheme]
|
||||
[theme, setTheme, setLocalTheme]
|
||||
)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user