refactor: remove unused code (#2425)

This commit is contained in:
Himself65
2023-05-17 17:15:12 -07:00
committed by GitHub
parent f875b37641
commit d6b640726e
8 changed files with 3 additions and 94 deletions
@@ -1,29 +1,3 @@
import { CssBaseline } from '@mui/material';
import {
alpha,
createTheme as createMuiTheme,
css,
keyframes,
styled,
type ThemeOptions,
ThemeProvider as MuiThemeProvider,
} from '@mui/material/styles';
import type { PropsWithChildren } from 'react';
import { useMemo } from 'react';
import { alpha, css, keyframes, styled } from '@mui/material/styles';
export { alpha, css, keyframes, styled };
export const AffineMuiThemeProvider = ({
theme,
children,
}: PropsWithChildren<{
theme: ThemeOptions;
}>) => {
const muiTheme = useMemo(() => createMuiTheme(theme), [theme]);
return (
<MuiThemeProvider theme={muiTheme}>
<CssBaseline />
{children}
</MuiThemeProvider>
);
};