Skip to content

Commit

Permalink
chore: temporarily remove push notifications button until we have pro…
Browse files Browse the repository at this point in the history
…per support (calcom#17887)
  • Loading branch information
PeerRich authored Nov 27, 2024
1 parent d6fe955 commit ad8c888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/features/shell/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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}
Expand All @@ -221,7 +221,7 @@ export function ShellMain(props: LayoutProps) {
: "allow_browser_notifications"
)}
</Button>
)}
)} */}
</header>
)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/features/shell/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}
Expand All @@ -322,7 +322,7 @@ export function ShellMain(props: LayoutProps) {
: "allow_browser_notifications"
)}
</Button>
)}
)} */}
</header>
)}
</div>
Expand Down

0 comments on commit ad8c888

Please sign in to comment.