Skip to content

Commit

Permalink
fix: misspelled typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yencolon committed Oct 17, 2020
1 parent e1af15e commit b50419c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useDarkMode.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useState, useEffect } from "preact/hooks"

const DARK = 'dark'
const LIGHT = 'ligth'
const LIGHT = 'light'

export const useDarkModeState = () => {
const [isDark, setIsDark] = useState(() => {
const mode = localStorage.getItem('themeMode', LIGHT)
return mode === 'dark'
return mode === DARK
});

useEffect(() => {
Expand Down

0 comments on commit b50419c

Please sign in to comment.