From 4f6c566c8e47d8060a1c08f0f417a137bb48997a Mon Sep 17 00:00:00 2001 From: Dhiraj Arun <69076988+DhrjArun@users.noreply.github.com> Date: Mon, 5 Sep 2022 00:38:10 +0530 Subject: [PATCH] [@mantine/notifications] Remove unexpected `message` prop on notification root element (#2327) --- .../src/NotificationContainer/NotificationContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx b/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx index e2872c03ef5..deb96de920b 100644 --- a/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx +++ b/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx @@ -17,7 +17,7 @@ export default function NotificationContainer({ innerRef, ...others }: NotificationContainerProps) { - const { autoClose: notificationAutoClose, ...notificationProps } = notification; + const { autoClose: notificationAutoClose, message, ...notificationProps } = notification; const autoCloseTimeout = getAutoClose(autoClose, notificationAutoClose); const hideTimeout = useRef(); @@ -56,7 +56,7 @@ export default function NotificationContainer({ onMouseLeave={handleDelayedHide} ref={innerRef} > - {notification.message} + {message} ); }