diff --git a/@web/components/notification-button.tsx b/@web/components/notification-button.tsx index 4b8007c..de4eeef 100644 --- a/@web/components/notification-button.tsx +++ b/@web/components/notification-button.tsx @@ -100,7 +100,7 @@ function NotificationToaster() { notification.blocks.find((b) => b.name === 'action_url')?.rendered toast( -
+
{ + toast.dismiss(id) const url = new URL(actionUrl) + feedClient.markAsSeen(notification) feedClient.markAsRead(notification) if (url.origin === window.location.origin) { @@ -124,7 +126,20 @@ function NotificationToaster() { > View - ) : null} + ) : ( + + )}
, { id,