diff --git a/app/components/layout/NotificationPopover.tsx b/app/components/layout/NotificationPopover.tsx index 2d365f9b8..98d7db1ee 100644 --- a/app/components/layout/NotificationPopover.tsx +++ b/app/components/layout/NotificationPopover.tsx @@ -76,6 +76,7 @@ export function NotificationContent({ {i !== notifications.length - 1 && } diff --git a/app/features/notifications/components/NotificationList.tsx b/app/features/notifications/components/NotificationList.tsx index c30e51b55..3d2b29d99 100644 --- a/app/features/notifications/components/NotificationList.tsx +++ b/app/features/notifications/components/NotificationList.tsx @@ -18,8 +18,10 @@ export function NotificationsList({ children }: { children: React.ReactNode }) { export function NotificationItem({ notification, + onClose, }: { notification: LoaderNotification; + onClose?: () => void; }) { const { t, i18n } = useTranslation(["common"]); @@ -28,6 +30,7 @@ export function NotificationItem({ to={notificationLink(notification)} className={styles.item} data-testid="notification-item" + onClick={onClose} > {!notification.seen ?
: null}