Skip to content

Commit ad8c888

Browse files
authored
chore: temporarily remove push notifications button until we have proper support (#17887)
1 parent d6fe955 commit ad8c888

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/features/shell/Shell.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import classNames from "@calcom/lib/classNames";
1313
import { APP_NAME } from "@calcom/lib/constants";
1414
import { useFormbricks } from "@calcom/lib/formbricks-client";
1515
import { useLocale } from "@calcom/lib/hooks/useLocale";
16-
import { ButtonState, useNotifications } from "@calcom/lib/hooks/useNotifications";
16+
import { useNotifications } from "@calcom/lib/hooks/useNotifications";
1717
import { Button, ErrorBoundary, HeadSeo, SkeletonText } from "@calcom/ui";
1818

1919
import usePostHog from "../ee/event-tracking/lib/posthog/userPostHog";
@@ -205,7 +205,7 @@ export function ShellMain(props: LayoutProps) {
205205
</div>
206206
)}
207207
{props.actions && props.actions}
208-
{props.heading === "Bookings" && buttonToShow && (
208+
{/* TODO: temporary hide push notifications {props.heading === "Bookings" && buttonToShow && (
209209
<Button
210210
color="primary"
211211
onClick={buttonToShow === ButtonState.ALLOW ? enableNotifications : disableNotifications}
@@ -221,7 +221,7 @@ export function ShellMain(props: LayoutProps) {
221221
: "allow_browser_notifications"
222222
)}
223223
</Button>
224-
)}
224+
)} */}
225225
</header>
226226
)}
227227
</div>

packages/features/shell/SideBar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
1212
import { getBookerBaseUrlSync } from "@calcom/lib/getBookerUrl/client";
1313
import { useCopy } from "@calcom/lib/hooks/useCopy";
1414
import { useLocale } from "@calcom/lib/hooks/useLocale";
15-
import { useNotifications, ButtonState } from "@calcom/lib/hooks/useNotifications";
15+
import { useNotifications } from "@calcom/lib/hooks/useNotifications";
1616
import {
1717
Avatar,
1818
Button,
@@ -306,7 +306,7 @@ export function ShellMain(props: LayoutProps) {
306306
</div>
307307
)}
308308
{props.actions && props.actions}
309-
{props.heading === "Bookings" && buttonToShow && (
309+
{/* TODO: temporary hide push notifications {props.heading === "Bookings" && buttonToShow && (
310310
<Button
311311
color="primary"
312312
onClick={buttonToShow === ButtonState.ALLOW ? enableNotifications : disableNotifications}
@@ -322,7 +322,7 @@ export function ShellMain(props: LayoutProps) {
322322
: "allow_browser_notifications"
323323
)}
324324
</Button>
325-
)}
325+
)} */}
326326
</header>
327327
)}
328328
</div>

0 commit comments

Comments
 (0)