mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 07:56:12 +02:00
Merge pull request #107 from the-programmers-hangout/feat-default-to-darkmode
feat: default to darkmode instead of lightmode
This commit is contained in:
@@ -17,7 +17,7 @@ interface IScopedDownChildren {
|
|||||||
export const ThemeContext = createContext<IThemeContext | null>(null)
|
export const ThemeContext = createContext<IThemeContext | null>(null)
|
||||||
|
|
||||||
const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
||||||
const [theme, setTheme] = useLocalStorage("theme", "light")
|
const [theme, setTheme] = useLocalStorage("theme", "dark")
|
||||||
|
|
||||||
const themeObject = useMemo(
|
const themeObject = useMemo(
|
||||||
() => (theme === "dark" ? darkTheme : lightTheme),
|
() => (theme === "dark" ? darkTheme : lightTheme),
|
||||||
|
|||||||
Reference in New Issue
Block a user