From c623785ec20ba9958ffc518ec0e41a7d0cbd7ae7 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Tue, 7 Jan 2025 05:56:09 -0500 Subject: [PATCH] chore: remove unused code from SideBar (#18487) --- packages/features/shell/SideBar.tsx | 108 +--------------------------- 1 file changed, 1 insertion(+), 107 deletions(-) diff --git a/packages/features/shell/SideBar.tsx b/packages/features/shell/SideBar.tsx index 619a694255..b53c4a5e97 100644 --- a/packages/features/shell/SideBar.tsx +++ b/packages/features/shell/SideBar.tsx @@ -3,7 +3,6 @@ import { useSession } from "next-auth/react"; import dynamic from "next/dynamic"; import Link from "next/link"; import { usePathname } from "next/navigation"; -import { useRouter } from "next/navigation"; import { useState } from "react"; import { classNames } from "@calcom/lib"; @@ -12,21 +11,9 @@ 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 } from "@calcom/lib/hooks/useNotifications"; -import { - Avatar, - Button, - ButtonOrLink, - Credits, - Icon, - SkeletonText, - Tooltip, - Logo, - showToast, -} from "@calcom/ui"; +import { Avatar, ButtonOrLink, Credits, Icon, SkeletonText, Tooltip, Logo, showToast } from "@calcom/ui"; import { KBarTrigger } from "../kbar/Kbar"; -import type { LayoutProps } from "./Shell"; import { Navigation } from "./navigation/Navigation"; import { type NavigationItemType } from "./navigation/NavigationItem"; import { ProfileDropdown } from "./user-dropdown/ProfileDropdown"; @@ -241,96 +228,3 @@ export function SideBar({ bannersHeight, user }: SideBarProps) { ); } - -export function ShellMain(props: LayoutProps) { - const router = useRouter(); - const { isLocaleReady, t } = useLocale(); - - const { buttonToShow, isLoading, enableNotifications, disableNotifications } = useNotifications(); - - return ( - <> - {(props.heading || !!props.backPath) && ( -
- {!!props.backPath && ( - - )} */} - - )} -
- )} - {props.afterHeading && <>{props.afterHeading}} -
- {props.children} -
- - ); -}