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

This commit is contained in:
Peer Richelsen authored and GitHub committed 2024-11-27 19:27:07 +00:00
1 parent d6fe955ea8
commit ad8c888b77
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -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>
+3 -3
View File
@@ -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>