修复ts报错

This commit is contained in:
rickcole 2020-06-30 13:58:35 +08:00
parent 1b3033d73d
commit 6f1ccef6f1
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ export interface ThemeProps {
}
export let defaultTheme: string = 'default';
export const ThemeContext = React.createContext(undefined);
export const ThemeContext = React.createContext('');
export function themeable<
T extends React.ComponentType<React.ComponentProps<T> & ThemeProps> & {