diff --git a/.changeset/thin-lamps-ring.md b/.changeset/thin-lamps-ring.md new file mode 100644 index 000000000000..f69a03165cbf --- /dev/null +++ b/.changeset/thin-lamps-ring.md @@ -0,0 +1,9 @@ +--- +"@refinedev/antd": patch +--- + +fix(antd)!: Unswap notification message and description fields #6524 + +Fixes swapped properties `message` and `description` for `antd`'s Notification component. + +Resolves #6524 diff --git a/packages/antd/src/providers/notificationProvider/index.tsx b/packages/antd/src/providers/notificationProvider/index.tsx index d8752e60c93c..bb4e07ecb859 100644 --- a/packages/antd/src/providers/notificationProvider/index.tsx +++ b/packages/antd/src/providers/notificationProvider/index.tsx @@ -39,8 +39,8 @@ export const notificationProvider: NotificationProvider = { } else { staticNotification.open({ key, - description: message, - message: description ?? null, + message, + description: description ?? null, type, }); } @@ -85,8 +85,8 @@ export const useNotificationProvider = (): NotificationProvider => { } else { notification.open({ key, - description: message, - message: description ?? null, + message, + description: description ?? null, type, }); }