diff --git a/packages/amis-core/src/locale.tsx b/packages/amis-core/src/locale.tsx index 5a99b6572..5b92e8d94 100644 --- a/packages/amis-core/src/locale.tsx +++ b/packages/amis-core/src/locale.tsx @@ -99,8 +99,8 @@ export function getDefaultLocale() { return defaultLocale; } -export function setDefaultLocale(loacle: string) { - defaultLocale = loacle; +export function setDefaultLocale(locale: string) { + defaultLocale = locale; } export interface LocaleProps { diff --git a/packages/amis-core/src/theme.tsx b/packages/amis-core/src/theme.tsx index 420cae813..e89d54990 100644 --- a/packages/amis-core/src/theme.tsx +++ b/packages/amis-core/src/theme.tsx @@ -122,7 +122,7 @@ export interface ThemeProps { }; } -export interface ThemeOutterProps extends Partial {} +export interface ThemeOuterProps extends Partial {} export let defaultTheme: string = 'cxd'; export const ThemeContext = React.createContext(''); @@ -136,7 +136,7 @@ export function themeable< T, Omit, keyof ThemeProps> > & - ThemeOutterProps; + ThemeOuterProps; const result = hoistNonReactStatic( class extends React.Component {