Skip to content

Commit

Permalink
Merge pull request #8398 from marmelab/usenotify-doc
Browse files Browse the repository at this point in the history
[Doc] Add missing error type in `useNotify`
  • Loading branch information
WiXSL authored Nov 16, 2022
2 parents fea7cb4 + f78e73f commit fc3cc11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/useNotify.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const NotifyButton = () => {
The callback takes 2 arguments:
- The message to display
- an `options` object with the following keys:
- `type`: The notification type (`info`, `success` or `warning` - the default is `info`)
- `type`: The notification type (`info`, `success`, `error` or `warning` - the default is `info`)
- `messageArgs`: options to pass to the `translate` function (because notification messages are translated if your admin has an `i18nProvider`). It is useful for inserting variables into the translation.
- `undoable`: Set it to `true` if the notification should contain an "undo" button
- `autoHideDuration`: Duration (in milliseconds) after which the notification hides. Set it to `0` if the notification should not be dismissible.
Expand Down Expand Up @@ -85,4 +85,4 @@ const LogoutButton = () => {
};
```

To change the default delay for all notifications, check [the Theming documentation](./Theming.md#notifications).
To change the default delay for all notifications, check [the Theming documentation](./Theming.md#notifications).

0 comments on commit fc3cc11

Please sign in to comment.