Skip to content

Commit 66e9f26

Browse files
committed
Improve documentation
1 parent cbf1f9f commit 66e9f26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/useNotify.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ The `options` is an object that can have the following properties:
5050

5151
| Name | Type | Default | Description |
5252
| --- | --- | --- | --- |
53-
| `anchorOrigin` | `object` | - | The position of the notification. The default is `{ vertical: 'top', horizontal: 'right' }`. See [the Material UI documentation](https://mui.com/material-ui/react-snackbar/) for more details. |
54-
| `autoHideDuration` | `number | null` | - | Duration (in milliseconds) after which the notification hides. Set it to `null` if the notification should not be dismissible. |
53+
| `anchorOrigin` | `object` | - | The position of the notification. The default is `{ vertical: 'bottom', horizontal: 'center' }`. See [the Material UI documentation](https://mui.com/material-ui/react-snackbar/) for more details. |
54+
| `autoHideDuration` | `number | null` | `4000` | Duration (in milliseconds) after which the notification hides. Set it to `null` if the notification should not be dismissible. |
5555
| `messageArgs` | `object` | - | 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. |
5656
| `multiLine` | `boolean` | - | Set it to `true` if the notification message should be shown in more than one line. |
5757
| `undoable` | `boolean` | - | Set it to `true` if the notification should contain an "undo" button |
58-
| `type` | `string` | - | The notification type (`info`, `success`, `error` or `warning` - the default is `info`) |
58+
| `type` | `string` | `info` | The notification type (`info`, `success`, `error` or `warning` - the default is `info`) |
5959

6060
## `anchorOrigin`
6161

0 commit comments

Comments
 (0)