Skip to content

Scheduling infrastructure for absolutely everyone.

chore: temporarily remove push notifications button until we have proper support (#17887)

Peer Richelsenad8c888b7740
diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx
index ed3e3424bc3..9c389c59a0b 100644
--- a/packages/features/shell/Shell.tsx
+++ b/packages/features/shell/Shell.tsx
@@ -13,7 +13,7 @@ import classNames from "@calcom/lib/classNames";
import { APP_NAME } from "@calcom/lib/constants";
import { useFormbricks } from "@calcom/lib/formbricks-client";
import { useLocale } from "@calcom/lib/hooks/useLocale";
-import { ButtonState, useNotifications } from "@calcom/lib/hooks/useNotifications";
+import { useNotifications } from "@calcom/lib/hooks/useNotifications";
import { Button, ErrorBoundary, HeadSeo, SkeletonText } from "@calcom/ui";
import usePostHog from "../ee/event-tracking/lib/posthog/userPostHog";
@@ -205,7 +205,7 @@ export function ShellMain(props: LayoutProps) {
</div>
)}
{props.actions && props.actions}
- {props.heading === "Bookings" && buttonToShow && (
+ {/* TODO: temporary hide push notifications {props.heading === "Bookings" && buttonToShow && (
<Button
color="primary"
onClick={buttonToShow === ButtonState.ALLOW ? enableNotifications : disableNotifications}
@@ -221,7 +221,7 @@ export function ShellMain(props: LayoutProps) {
: "allow_browser_notifications"
)}
</Button>
- )}
+ )} */}
</header>
)}
</div>
diff --git a/packages/features/shell/SideBar.tsx b/packages/features/shell/SideBar.tsx
index 7d81a109398..619a694255f 100644
--- a/packages/features/shell/SideBar.tsx
+++ b/packages/features/shell/SideBar.tsx
@@ -12,7 +12,7 @@ import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { getBookerBaseUrlSync } from "@calcom/lib/getBookerUrl/client";
import { useCopy } from "@calcom/lib/hooks/useCopy";
import { useLocale } from "@calcom/lib/hooks/useLocale";
-import { useNotifications, ButtonState } from "@calcom/lib/hooks/useNotifications";
+import { useNotifications } from "@calcom/lib/hooks/useNotifications";
import {
Avatar,
Button,
@@ -306,7 +306,7 @@ export function ShellMain(props: LayoutProps) {
</div>
)}
{props.actions && props.actions}
- {props.heading === "Bookings" && buttonToShow && (
+ {/* TODO: temporary hide push notifications {props.heading === "Bookings" && buttonToShow && (
<Button
color="primary"
onClick={buttonToShow === ButtonState.ALLOW ? enableNotifications : disableNotifications}
@@ -322,7 +322,7 @@ export function ShellMain(props: LayoutProps) {
: "allow_browser_notifications"
)}
</Button>
- )}
+ )} */}
</header>
)}
</div>