diff --git a/packages/create-react-admin/src/generateProject.ts b/packages/create-react-admin/src/generateProject.ts index 7913e2bbf1f..79b2497aae6 100644 --- a/packages/create-react-admin/src/generateProject.ts +++ b/packages/create-react-admin/src/generateProject.ts @@ -74,6 +74,7 @@ const generateAppFile = ( path.join(projectDirectory, 'src', 'App.tsx'), ` import { Admin, Resource, ListGuesser, EditGuesser, ShowGuesser } from 'react-admin'; +import { Layout } from './Layout'; ${ state.dataProvider !== 'none' ? `import { dataProvider } from './dataProvider';\n` @@ -83,8 +84,10 @@ ${ ? `import { authProvider } from './authProvider';\n` : '' } + export const App = () => ( ( + + {children} + + +);