Skip to content

Commit

Permalink
[@mantine/notifications] Remove unexpected message prop on notifica…
Browse files Browse the repository at this point in the history
…tion root element (#2327)
  • Loading branch information
dhrjarun committed Sep 4, 2022
1 parent 6fe20c9 commit 4f6c566
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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<number>();

Expand Down Expand Up @@ -56,7 +56,7 @@ export default function NotificationContainer({
onMouseLeave={handleDelayedHide}
ref={innerRef}
>
{notification.message}
{message}
</Notification>
);
}
Expand Down

0 comments on commit 4f6c566

Please sign in to comment.