Skip to content

Commit

Permalink
Merge pull request #9651 from marmelab/fix-SaveButton-doc
Browse files Browse the repository at this point in the history
[Doc] Fix code example in the Usage section of `<SaveButton>` is broken
  • Loading branch information
adguernier authored Feb 8, 2024
2 parents 9e7ab4e + 3a91370 commit 22af0a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/SaveButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The `<SaveButton>` component is a button that is used to submit a form.

Create a `<SaveButton>` with custom UI options, or custom side effects, then use that button in a custom [`<Toolbar>`](./Toolbar.md) that you can inject to `<SimpleForm>` or `<TabbedForm>` using the `toolbar` prop:

{% raw %}
```jsx
import { SaveButton, Toolbar, Edit, SimpleForm, useNotify, useRedirect } from 'react-admin';

Expand Down Expand Up @@ -45,6 +46,7 @@ const PostEdit = () => (
</Edit>
);
```
{% endraw %}

## Props

Expand Down

0 comments on commit 22af0a5

Please sign in to comment.