updated all packages to latest
This commit is contained in:
1 parent
f1b24ec783
commit
e22f64dd51
18 files changed
+3455
-3751
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import "./index.css";
|
||||
import { FC } from 'react';
|
||||
import { FC, ReactNode } from 'react';
|
||||
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
||||
import { VersionBox } from "components/VersionBox";
|
||||
import { SnackbarProvider } from 'notistack';
|
||||
|
||||
const theme = createTheme({
|
||||
palette: {
|
||||
@@ -10,14 +11,18 @@ const theme = createTheme({
|
||||
});
|
||||
|
||||
|
||||
export const Page: FC = ({ children }) => {
|
||||
export const Page: FC<{
|
||||
children: ReactNode
|
||||
}> = ({ children }) => {
|
||||
return <ThemeProvider theme={theme}>
|
||||
<main className="page" style={{
|
||||
color: theme.palette.text.primary,
|
||||
background: theme.palette.background.default,
|
||||
}}>
|
||||
<VersionBox />
|
||||
{children}
|
||||
</main>
|
||||
<SnackbarProvider>
|
||||
<main className="page" style={{
|
||||
color: theme.palette.text.primary,
|
||||
background: theme.palette.background.default,
|
||||
}}>
|
||||
<VersionBox />
|
||||
{children}
|
||||
</main>
|
||||
</SnackbarProvider>
|
||||
</ThemeProvider>
|
||||
}
|
||||
Reference in new issue
Block a user