Skip to content

Commit

Permalink
Merge pull request marmelab#9157 from marmelab/doc-fix-auto-save-tool…
Browse files Browse the repository at this point in the history
…bar-is-not-a-react-node

[no-ci][Doc] fix AutoSaveToolbar is not a ReactElement
  • Loading branch information
fzaninotto authored Aug 3, 2023
2 parents 3d1db65 + 84b73c6 commit 3235458
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/AccordionForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ const PersonEdit = () => (
<Edit mutationMode="optimistic">
<AccordionForm
resetOptions={{ keepDirtyValues: true }}
toolbar={AutoSaveToolbar}
toolbar={<AutoSaveToolbar />}
>
<AccordionForm.Panel label="identity">
<TextInput source="first_name" />
Expand Down
2 changes: 1 addition & 1 deletion docs/EditTutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ const PersonEdit = () => (
<Edit mutationMode="optimistic">
<SimpleForm
resetOptions={{ keepDirtyValues: true }}
toolbar={AutoSaveToolbar}
toolbar={<AutoSaveToolbar />}
>
<TextInput source="first_name" />
<TextInput source="last_name" />
Expand Down
2 changes: 1 addition & 1 deletion docs/LongForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ const PersonEdit = () => (
<Edit mutationMode="optimistic">
<LongForm
resetOptions={{ keepDirtyValues: true }}
toolbar={AutoSaveToolbar}
toolbar={<AutoSaveToolbar />}
>
<LongForm.Section label="identity">
<TextInput source="first_name" />
Expand Down
2 changes: 1 addition & 1 deletion docs/SimpleForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ const PersonEdit = () => (
<Edit mutationMode="optimistic">
<SimpleForm
resetOptions={{ keepDirtyValues: true }}
toolbar={AutoSaveToolbar}
toolbar={<AutoSaveToolbar />}
>
<TextInput source="first_name" />
<TextInput source="last_name" />
Expand Down
2 changes: 1 addition & 1 deletion docs/TabbedForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ const PostEdit = () => (
<Edit mutationMode="optimistic">
<TabbedForm
resetOptions={{ keepDirtyValues: true }}
toolbar={AutoSaveToolbar}
toolbar={<AutoSaveToolbar />}
>
<TabbedForm.Tab label="summary">
<TextInput source="title" />
Expand Down

0 comments on commit 3235458

Please sign in to comment.