cyril.tsui 5 месяцев назад
Родитель
Сommit
14b29eba97
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      src/theme/ThemeRegistry.tsx

+ 2
- 2
src/theme/ThemeRegistry.tsx Просмотреть файл

@@ -17,7 +17,7 @@ const getLocalizationFromLang = (lang: string) => {
// Copied from https://github.com/mui/material-ui/blob/master/examples/material-ui-nextjs-ts/src/components/ThemeRegistry/ThemeRegistry.tsx // Copied from https://github.com/mui/material-ui/blob/master/examples/material-ui-nextjs-ts/src/components/ThemeRegistry/ThemeRegistry.tsx
export default function ThemeRegistry({ export default function ThemeRegistry({
children, children,
lang,
lang = "zh",
}: { }: {
children: React.ReactNode; children: React.ReactNode;
lang: string; lang: string;
@@ -28,7 +28,7 @@ export default function ThemeRegistry({
); );
return ( return (
<NextAppDirEmotionCacheProvider options={{ key: "mui" }}> <NextAppDirEmotionCacheProvider options={{ key: "mui" }}>
<ThemeProvider theme={theme}>
<ThemeProvider theme={themeWithLocale}>
<CssBaseline /> <CssBaseline />
{children} {children}
</ThemeProvider> </ThemeProvider>


Загрузка…
Отмена
Сохранить