Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add missing error type in useNotify #8398

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).