Skip to content

Commit bf88a51

Browse files
authored
fix(docs): repeated documentation and wrong placement (#6686)
1 parent f6965a1 commit bf88a51

File tree

2 files changed

+2
-2
lines changed
  • documentation/tutorial/ui-libraries
    • authentication/material-ui/react-router
    • notifications/material-ui/react-router

2 files changed

+2
-2
lines changed

documentation/tutorial/ui-libraries/authentication/material-ui/react-router/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Now our application is ready to use with layouts, views and notifications. Only
1515
- Forgot password page with type `forgotPassword` which renders a forgot password form and works with the `useForgotPassword` hook.
1616
- Update password page with type `updatePassword` which renders a update password form and works with the `useUpdatePassword` hook.
1717

18-
Now we've refactored our application with Material UI, we only have one thing left to do: handle notifications. Refine triggers notification in various scenarios, such as when a record is created, updated, or deleted, when there is an error from your data provider or your auth provider. It's important to provide feedback to the user when interacting with the application.
1918

2019
## Using `<AuthPage />` Component
2120

documentation/tutorial/ui-libraries/notifications/material-ui/react-router/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import { Sandpack, AddNotificationProviderToApp } from "./sandpack.tsx";
66

77
<Sandpack>
88

9-
In this step, we will explore integrating Material UI's notification elements with Refine to deliver notifications to users.
9+
Now we've refactored our application with Material UI, we only have one thing left to do: handle notifications.
1010

1111
Refine triggers notification in various scenarios, such as when a record is created, updated, or deleted, when there is an error from your data provider or your auth provider. It's important to provide feedback to the user when interacting with the application.
1212

13+
1314
All these notifications are enabled just by providing a `notificationProvider` prop to the `<Refine />` component. A notification provider is responsible from displaying and dismissing notifications as well as handling undoable mutation notifications.
1415

1516
Material UI provides a `<Snackbar />` component that can be used to display notifications but lacks the built-in ability to manage notifications. To handle the management of notifications, it's recommended to use the `notistack` library, which provides a notification system that can be used to handle these notifications.

0 commit comments

Comments
 (0)