Skip to content

Commit bf59c7c

Browse files
fix: add notifications back to desktop (coder#17021)
The notifications were removed on [this PR ](coder#17008 accident.
1 parent 4960a1e commit bf59c7c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ export const NavbarView: FC<NavbarViewProps> = ({
6767
canViewHealth={canViewHealth}
6868
/>
6969

70+
<NotificationsInbox
71+
fetchNotifications={API.getInboxNotifications}
72+
markAllAsRead={() => {
73+
throw new Error("Function not implemented.");
74+
}}
75+
markNotificationAsRead={(notificationId) =>
76+
API.updateInboxNotificationReadStatus(notificationId, {
77+
is_read: true,
78+
})
79+
}
80+
/>
81+
7082
{user && (
7183
<UserDropdown
7284
user={user}

0 commit comments

Comments
 (0)