From f78e73f310d29c35b3b9e3c7a855230fc3671010 Mon Sep 17 00:00:00 2001 From: Antoine Fricker Date: Wed, 16 Nov 2022 11:07:57 +0100 Subject: [PATCH] Add missing error type --- docs/useNotify.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/useNotify.md b/docs/useNotify.md index 1da3209a348..5aa0828f8bd 100644 --- a/docs/useNotify.md +++ b/docs/useNotify.md @@ -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. @@ -85,4 +85,4 @@ const LogoutButton = () => { }; ``` -To change the default delay for all notifications, check [the Theming documentation](./Theming.md#notifications). \ No newline at end of file +To change the default delay for all notifications, check [the Theming documentation](./Theming.md#notifications).