Skip to content

Commit

Permalink
Run admin generator to update ProductForm
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesricky committed Feb 16, 2024
1 parent 399214d commit 19b2731
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions demo/admin/src/products/future/generated/ProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
FinalFormSubmitEvent,
Loading,
MainContent,
TextAreaField,
TextField,
Toolbar,
ToolbarActions,
ToolbarFillSpace,
Expand Down Expand Up @@ -159,28 +161,14 @@ export function ProductForm({ id }: FormProps): React.ReactElement {
</ToolbarActions>
</Toolbar>
<MainContent>
<Field
required
fullWidth
name="title"
component={FinalFormInput}
label={<FormattedMessage id="product.title" defaultMessage="Titel" />}
/>
<TextField required fullWidth name="title" label={<FormattedMessage id="product.title" defaultMessage="Titel" />} />

<Field
required
fullWidth
name="slug"
component={FinalFormInput}
label={<FormattedMessage id="product.slug" defaultMessage="Slug" />}
/>
<TextField required fullWidth name="slug" label={<FormattedMessage id="product.slug" defaultMessage="Slug" />} />

<Field
<TextAreaField
required
multiline
fullWidth
name="description"
component={FinalFormInput}
label={<FormattedMessage id="product.description" defaultMessage="Description" />}
/>
<Field fullWidth name="type" label={<FormattedMessage id="product.type" defaultMessage="Type" />}>
Expand Down

0 comments on commit 19b2731

Please sign in to comment.