chore: reduce code by gndelia/codemod-replace-react-fc-typescript

This commit is contained in:
DarkSky
2022-08-12 01:26:27 +08:00
parent b4f56cda59
commit 40b617c429
73 changed files with 108 additions and 115 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const theme = createTheme({
affine: Theme,
});
export const ThemeProvider: FC<{ children?: ReactNode }> = ({ children }) => {
export const ThemeProvider = ({ children }: { children?: ReactNode }) => {
return <MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>;
};