Skip to content

Commit

Permalink
Make story more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jun 12, 2024
1 parent 2d7ab25 commit 6ceaf4c
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,32 +508,21 @@ export const NestedInlineNoTranslation = () => (
>
<TranslatableInputs locales={['en', 'fr']}>
<Labeled source="name">
<TextField
source="name"
sx={{ width: 200 }}
/>
<TextField source="name" />
</Labeled>
</TranslatableInputs>
<TranslatableFields locales={['en', 'fr']}>
<TextField
source="name"
sx={{ width: 200 }}
/>
<TextField source="name" />
{/* Duplicated so that TranslatableFields adds labels */}
<TextField
source="name"
sx={{ width: 200 }}
/>
<TextField source="name" />
</TranslatableFields>
<NumberInput
source="price"
helperText={false}
sx={{ width: 100 }}
/>
<NumberInput
source="quantity"
helperText={false}
sx={{ width: 100 }}
/>
<ArrayInput source="extras">
<SimpleFormIterator
Expand All @@ -543,20 +532,17 @@ export const NestedInlineNoTranslation = () => (
<TextInput
source="type"
helperText={false}
sx={{ width: 100 }}
/>
<NumberInput
source="price"
helperText={false}
sx={{ width: 100 }}
/>
<TranslatableInputs
locales={['en', 'fr']}
>
<TextInput
source="content"
helperText={false}
sx={{ width: 200 }}
/>
</TranslatableInputs>
</SimpleFormIterator>
Expand Down

0 comments on commit 6ceaf4c

Please sign in to comment.