fix linting & type errors (#819)

This commit is contained in:
Ansh 2023-05-31 17:19:08 -07:00 committed by GitHub
parent 7d7410942f
commit 189fdb1789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -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>