diff --git a/src/components/notifications/ui-notification-toast.tsx b/src/components/notifications/ui-notification-toast.tsx index 6923a2835..e09b5ebb4 100644 --- a/src/components/notifications/ui-notification-toast.tsx +++ b/src/components/notifications/ui-notification-toast.tsx @@ -74,13 +74,13 @@ export const UiNotificationToast: React.FC = ({ const buttonsDom = useMemo( () => - buttons?.map((button) => { + buttons?.map((button, buttonIndex) => { const buttonClick = () => { button.onClick() dismissThisNotification() } return ( - ) @@ -89,9 +89,9 @@ export const UiNotificationToast: React.FC = ({ ) const contentDom = useMemo(() => { - return content.split('\n').map((value) => { + return content.split('\n').map((value, lineNumber) => { return ( - + {value}