Merge pull request #107 from the-programmers-hangout/feat-default-to-darkmode

feat: default to darkmode instead of lightmode
This commit is contained in:
Jean-Philippe Sirois
2019-09-27 19:25:34 -04:00
committed by GitHub
+1 -1
View File
@@ -17,7 +17,7 @@ interface IScopedDownChildren {
export const ThemeContext = createContext<IThemeContext | null>(null)
const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
const [theme, setTheme] = useLocalStorage("theme", "light")
const [theme, setTheme] = useLocalStorage("theme", "dark")
const themeObject = useMemo(
() => (theme === "dark" ? darkTheme : lightTheme),