feat: mark notifications as read when clicking action links in agent and user dashboards
This commit is contained in:
@@ -245,6 +245,7 @@ export default function AgentNotificationsPage() {
|
||||
{notification.actionUrl && (
|
||||
<Link
|
||||
href={notification.actionUrl}
|
||||
onClick={() => { if (!notification.read) markAsRead(notification.id); }}
|
||||
className="font-serif text-[13px] text-[#e58625] hover:text-[#d47720] transition-colors"
|
||||
>
|
||||
View details
|
||||
|
||||
@@ -237,6 +237,7 @@ export default function UserNotificationsPage() {
|
||||
{notification.actionUrl && (
|
||||
<Link
|
||||
href={notification.actionUrl}
|
||||
onClick={() => { if (!notification.read) markAsRead(notification.id); }}
|
||||
className="font-serif text-[13px] text-[#e58625] hover:text-[#d47720] transition-colors"
|
||||
>
|
||||
View details
|
||||
|
||||
Reference in New Issue
Block a user