Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Oct 12, 2024
1 parent 56bc060 commit 2fcbfc7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions site/src/hooks/use-color-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ export function useColorMode() {
useEffect(() => {
const theme = localStorage.getItem('theme')

console.log({ theme, colorMode })

if (isColorMode(theme) && theme !== colorMode) {
if (isColorMode(theme)) {
setColorMode(theme)
}
}, [colorMode])
}, [])

return { colorMode }
}
Expand Down

0 comments on commit 2fcbfc7

Please sign in to comment.