From dc18236bf0c5bd92ecc454f599504aaf643a82dc Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sun, 12 Apr 2026 15:17:58 +0530 Subject: [PATCH] feat: mark notifications as read when clicking action links in agent and user dashboards --- src/app/(agent)/agent/notifications/page.tsx | 1 + src/app/(user)/user/notifications/page.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/(agent)/agent/notifications/page.tsx b/src/app/(agent)/agent/notifications/page.tsx index c34cd50..226ea46 100644 --- a/src/app/(agent)/agent/notifications/page.tsx +++ b/src/app/(agent)/agent/notifications/page.tsx @@ -245,6 +245,7 @@ export default function AgentNotificationsPage() { {notification.actionUrl && ( { if (!notification.read) markAsRead(notification.id); }} className="font-serif text-[13px] text-[#e58625] hover:text-[#d47720] transition-colors" > View details diff --git a/src/app/(user)/user/notifications/page.tsx b/src/app/(user)/user/notifications/page.tsx index 5b6a139..f3b8055 100644 --- a/src/app/(user)/user/notifications/page.tsx +++ b/src/app/(user)/user/notifications/page.tsx @@ -237,6 +237,7 @@ export default function UserNotificationsPage() { {notification.actionUrl && ( { if (!notification.read) markAsRead(notification.id); }} className="font-serif text-[13px] text-[#e58625] hover:text-[#d47720] transition-colors" > View details