From eba4eb0aa6f909a9fc29ccec2348e691020f88a3 Mon Sep 17 00:00:00 2001 From: adrien guernier Date: Fri, 26 Apr 2024 16:22:38 +0200 Subject: [PATCH] fix SimpleList Basic story --- .../list/SimpleList/SimpleList.stories.tsx | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/ra-ui-materialui/src/list/SimpleList/SimpleList.stories.tsx b/packages/ra-ui-materialui/src/list/SimpleList/SimpleList.stories.tsx index 6045bfc8dc1..4a5d0b8d596 100644 --- a/packages/ra-ui-materialui/src/list/SimpleList/SimpleList.stories.tsx +++ b/packages/ra-ui-materialui/src/list/SimpleList/SimpleList.stories.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import fakeRestDataProvider from 'ra-data-fakerest'; -import { Resource, ListContextProvider, TestMemoryRouter } from 'ra-core'; +import { + Resource, + ListContextProvider, + TestMemoryRouter, + ResourceContextProvider, +} from 'ra-core'; import defaultMessages from 'ra-language-english'; import polyglotI18nProvider from 'ra-i18n-polyglot'; @@ -97,12 +102,14 @@ const data = { export const Basic = () => ( - record.title} - secondaryText={record => record.author} - tertiaryText={record => record.year} - /> + + record.title} + secondaryText={record => record.author} + tertiaryText={record => record.year} + /> + );