fix theme context initial value
This commit is contained in:
1 parent
3fa99b28de
commit
dd2dc744a2
1 file changed
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { createContext } from "react"
|
||||
import { SetTheme, ThemeType } from "./types"
|
||||
|
||||
export const ThemeContext = createContext<[ThemeType, SetTheme]>("default")
|
||||
export const ThemeContext = createContext<[ThemeType, SetTheme]>(["default", () => {}])
|
||||
Reference in new issue
Block a user