mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: add notifications back to desktop (#17021)
The notifications were removed on [this PR ](https://github.com/coder/coder/pull/17008)by accident.
This commit is contained in:
@@ -67,6 +67,18 @@ export const NavbarView: FC<NavbarViewProps> = ({
|
||||
canViewHealth={canViewHealth}
|
||||
/>
|
||||
|
||||
<NotificationsInbox
|
||||
fetchNotifications={API.getInboxNotifications}
|
||||
markAllAsRead={() => {
|
||||
throw new Error("Function not implemented.");
|
||||
}}
|
||||
markNotificationAsRead={(notificationId) =>
|
||||
API.updateInboxNotificationReadStatus(notificationId, {
|
||||
is_read: true,
|
||||
})
|
||||
}
|
||||
/>
|
||||
|
||||
{user && (
|
||||
<UserDropdown
|
||||
user={user}
|
||||
|
||||
Reference in New Issue
Block a user