fix linting & type errors (#819)
This commit is contained in:
parent
7d7410942f
commit
189fdb1789
3 changed files with 12 additions and 12 deletions
|
@ -78,7 +78,7 @@ export interface Theme {
|
|||
}
|
||||
|
||||
export interface ThemeProviderProps {
|
||||
theme?: ColorScheme
|
||||
theme?: 'light' | 'dark' | 'system'
|
||||
}
|
||||
|
||||
export const ThemeContext = createContext<Theme>(defaultTheme)
|
||||
|
@ -96,7 +96,7 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
|
|||
|
||||
const value = useMemo(
|
||||
() => (colorScheme === 'dark' ? darkTheme : defaultTheme),
|
||||
[colorScheme, theme],
|
||||
[colorScheme],
|
||||
)
|
||||
|
||||
return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue