Skip to content

Commit

Permalink
fix(mui): useNotification.close not working (refinedev#5430)
Browse files Browse the repository at this point in the history
* fix(mui): useNotification.close not working

* chore(mui): update changeset

---------

Co-authored-by: Ali Emir Şen <[email protected]>
  • Loading branch information
alicanerdurmaz and aliemir authored Jan 2, 2024
1 parent 3bc130e commit cfe7874
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-rules-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@refinedev/mui": patch
---

fix: `useNotification.close("notification-key")` not working. #5431
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ describe("Notistack notificationProvider", () => {
</Typography>
</Box>,
{
key: mockNotification.key,
variant: "success",
anchorOrigin: {
vertical: "top",
Expand All @@ -87,6 +88,7 @@ describe("Notistack notificationProvider", () => {
</Typography>
</Box>,
{
key: mockNotification.key,
variant: "error",
anchorOrigin: {
vertical: "top",
Expand Down
1 change: 1 addition & 0 deletions packages/mui/src/providers/notificationProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const notificationProvider = (): NotificationProvider => {
</Typography>
</Box>,
{
key,
variant: type,
anchorOrigin: {
vertical: "top",
Expand Down

0 comments on commit cfe7874

Please sign in to comment.