docs: bug fixes for copy and color mode (#8626)

* docs: bug fixes for copy and color mode

* remove unused dependency
This commit is contained in:
Shahed Nasser
2024-08-18 17:01:15 +02:00
committed by GitHub
parent 46310e32d0
commit 66c39ef876
5 changed files with 11 additions and 17 deletions
@@ -31,8 +31,8 @@ export const ColorModeProvider = ({ children }: ColorModeProviderProps) => {
const theme = localStorage.getItem("theme")
if (theme && (theme === "light" || theme === "dark")) {
setColorMode(theme)
setLoaded(true)
}
setLoaded(true)
}, [])
useEffect(() => {