1
1
import { API } from "api/api" ;
2
- import { experiments } from "api/queries/experiments" ;
3
2
import type * as TypesGen from "api/typesGenerated" ;
4
- import { Button } from "components/Button/Button" ;
5
3
import { ExternalImage } from "components/ExternalImage/ExternalImage" ;
6
4
import { CoderIcon } from "components/Icons/CoderIcon" ;
7
5
import type { ProxyContextValue } from "contexts/ProxyContext" ;
8
- import { useWebpushNotifications } from "contexts/useWebpushNotifications" ;
9
- import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata" ;
10
6
import { NotificationsInbox } from "modules/notifications/NotificationsInbox/NotificationsInbox" ;
11
7
import type { FC } from "react" ;
12
- import { useQuery } from "react-query" ;
13
8
import { NavLink , useLocation } from "react-router-dom" ;
14
9
import { cn } from "utils/cn" ;
15
10
import { DeploymentDropdown } from "./DeploymentDropdown" ;
@@ -48,9 +43,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
48
43
canViewAuditLog,
49
44
proxyContextValue,
50
45
} ) => {
51
- const { subscribed, enabled, loading, subscribe, unsubscribe } =
52
- useWebpushNotifications ( ) ;
53
-
54
46
return (
55
47
< div className = "border-0 border-b border-solid h-[72px] flex items-center leading-none px-6" >
56
48
< NavLink to = "/workspaces" >
@@ -63,7 +55,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
63
55
64
56
< NavItems className = "ml-4" />
65
57
66
- < div className = " hidden md: flex items-center gap-3 ml-auto" >
58
+ < div className = "flex items-center gap-3 ml-auto" >
67
59
{ proxyContextValue && (
68
60
< div className = "hidden md:block" >
69
61
< ProxyMenu proxyContextValue = { proxyContextValue } />
@@ -79,18 +71,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
79
71
/>
80
72
</ div >
81
73
82
- { enabled ? (
83
- subscribed ? (
84
- < Button variant = "outline" disabled = { loading } onClick = { unsubscribe } >
85
- Disable WebPush
86
- </ Button >
87
- ) : (
88
- < Button variant = "outline" disabled = { loading } onClick = { subscribe } >
89
- Enable WebPush
90
- </ Button >
91
- )
92
- ) : null }
93
-
94
74
< NotificationsInbox
95
75
fetchNotifications = { API . getInboxNotifications }
96
76
markAllAsRead = { API . markAllInboxNotificationsAsRead }
0 commit comments