Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33029c3 commit 2c53f7aCopy full SHA for 2c53f7a
site/src/modules/notifications/NotificationsInbox/InboxItem.tsx
@@ -40,7 +40,14 @@ export const InboxItem: FC<InboxItemProps> = ({
40
{notification.actions.map((action) => {
41
return (
42
<Button variant="outline" size="sm" key={action.label} asChild>
43
- <RouterLink to={action.url}>{action.label}</RouterLink>
+ <RouterLink
44
+ to={action.url}
45
+ onClick={() => {
46
+ onMarkNotificationAsRead(notification.id);
47
+ }}
48
+ >
49
+ {action.label}
50
+ </RouterLink>
51
</Button>
52
);
53
})}
0 commit comments