From e967509e8776c42e5250366545adaaf69ab1eb5d Mon Sep 17 00:00:00 2001 From: Gildas <1122076+djhi@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:02:46 +0100 Subject: [PATCH] Fix ArrayField Story --- .../src/field/ArrayField.stories.tsx | 84 +++++++++++-------- 1 file changed, 47 insertions(+), 37 deletions(-) diff --git a/packages/ra-ui-materialui/src/field/ArrayField.stories.tsx b/packages/ra-ui-materialui/src/field/ArrayField.stories.tsx index 58986c0ff3..98f21adab3 100644 --- a/packages/ra-ui-materialui/src/field/ArrayField.stories.tsx +++ b/packages/ra-ui-materialui/src/field/ArrayField.stories.tsx @@ -5,11 +5,13 @@ import { useListContext, useRecordContext, TestMemoryRouter, + ResourceContextProvider, } from 'ra-core'; import polyglotI18nProvider from 'ra-i18n-polyglot'; import englishMessages from 'ra-language-english'; import { Card, ThemeProvider, createTheme } from '@mui/material'; +import { AdminContext } from '../AdminContext'; import { ArrayField } from './ArrayField'; import { Datagrid, SingleFieldList } from '../list'; import { ChipField } from './ChipField'; @@ -133,42 +135,50 @@ export const ListContext = () => ( export const InShowLayout = () => ( - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + );