()
| 64 | }; |
| 65 | |
| 66 | export const WithDashboard = () => { |
| 67 | const MenuDefault = () => <Menu hasDashboard={true} dense={false} />; |
| 68 | const DefaultLayout = ({ children }) => ( |
| 69 | <Layout menu={MenuDefault}>{children}</Layout> |
| 70 | ); |
| 71 | const Dashboard = () => <Page title="Dashboard" />; |
| 72 | |
| 73 | return ( |
| 74 | <Admin |
| 75 | store={memoryStore()} |
| 76 | dataProvider={testDataProvider()} |
| 77 | layout={DefaultLayout} |
| 78 | dashboard={Dashboard} |
| 79 | > |
| 80 | {resources.map((resource, index) => ( |
| 81 | <Resource |
| 82 | name={resource} |
| 83 | key={`resource_${index}`} |
| 84 | list={<DemoList name={resource} />} |
| 85 | /> |
| 86 | ))} |
| 87 | </Admin> |
| 88 | ); |
| 89 | }; |
| 90 | |
| 91 | export const Dense = () => { |
| 92 | const MenuDense = () => <Menu hasDashboard={true} dense={true} />; |
nothing calls this directly
no test coverage detected