Skip to content

Commit 9245597

Browse files
authored
Fix typo in migration guide (#597)
1 parent a61155a commit 9245597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ variant, use a [custom component](#8-new-components-prop). [This example](https:
4545
* Any customisation through Material-UI theme is not applied to the elements. This would also mean toggling theme `mode` to **Dark**/**Light** would not affect the appearance of snackbars. You can easily use a [custom component](#8-new-components-prop) to have full control over your snackbars. [`This example`](https://github.com/iamhosseindhv/notistack/tree/master/examples/custom-snackbar-example) demonstrates how your snackbars can react to change of theme mode.
4646

4747
* Drop support for `withSnackbar` Higher-order component (HOC). Consequently, exported type `WithSnackbarProps` was kept in type declerations for backwards compatibility and after over a year, it has been now deleted and you should use `ProviderContext` type instead. You have two options to migrate your code:
48-
* Option 1: Migrate your code to be functional component and use `useSnackar`.
48+
* Option 1: Migrate your code to be functional component and use `useSnackbar`.
4949
* Option 2: Remove `withSnackbar` and import the function(s) you need directly from `notistack`:
5050
```diff
5151
- import { withSnackbar } from 'notistack'

0 commit comments

Comments
 (0)