From 01c05637f7bcd277d47918051f44b21706938f45 Mon Sep 17 00:00:00 2001 From: Dhiraj Arun Date: Mon, 5 Sep 2022 00:14:12 +0530 Subject: [PATCH] [@mantine/notifications] remove message prop from notification root element --- .../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} ); }