This commit is contained in:
parent
50751e0c20
commit
b384f1b30a
2 changed files with 21 additions and 21 deletions
|
|
@ -15,7 +15,7 @@ type ThemeProviderState = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const initialState: ThemeProviderState = {
|
const initialState: ThemeProviderState = {
|
||||||
theme: "system",
|
theme: "dark",
|
||||||
setTheme: () => null,
|
setTheme: () => null,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { useTheme } from "@/context/ThemeProvider"
|
||||||
|
|
||||||
const MainTemplate = (props) => {
|
const MainTemplate = (props) => {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider defaultTheme="light" storageKey="vite-ui-theme">
|
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
||||||
<MainContent>{props.children}</MainContent>
|
<MainContent>{props.children}</MainContent>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue