mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
upgrade to react18
This commit is contained in:
@@ -4,6 +4,8 @@ import { CssBaseline } from '@mui/material';
|
||||
import { createTheme, responsiveFontSizes, ThemeProvider } from '@mui/material/styles';
|
||||
import { blueGrey, blue } from '@mui/material/colors';
|
||||
|
||||
import { RequiredChildrenProps } from './utils';
|
||||
|
||||
const theme = responsiveFontSizes(
|
||||
createTheme({
|
||||
typography: {
|
||||
@@ -21,7 +23,7 @@ const theme = responsiveFontSizes(
|
||||
})
|
||||
);
|
||||
|
||||
const CustomTheme: FC = ({ children }) => (
|
||||
const CustomTheme: FC<RequiredChildrenProps> = ({ children }) => (
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline />
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user