You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/useNotify.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,12 @@ The `options` is an object that can have the following properties:
50
50
51
51
| Name | Type | Default | Description |
52
52
| --- | --- | --- | --- |
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. |
55
55
|`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. |
56
56
|`multiLine`|`boolean`| - | Set it to `true` if the notification message should be shown in more than one line. |
57
57
|`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`) |
0 commit comments