diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsx index d1f99ae81a..8eb538ec7b 100644 --- a/packages/ui/v2/core/Shell.tsx +++ b/packages/ui/v2/core/Shell.tsx @@ -7,6 +7,7 @@ import { Toaster } from "react-hot-toast"; import dayjs from "@calcom/dayjs"; import { useIsEmbed } from "@calcom/embed-core/embed-iframe"; +import LicenseBanner from "@calcom/features/ee/common/components/LicenseBanner"; import TrialBanner from "@calcom/features/ee/common/components/TrialBanner"; import ImpersonatingBanner from "@calcom/features/ee/impersonation/components/ImpersonatingBanner"; import HelpMenuItem from "@calcom/features/ee/support/components/HelpMenuItem"; @@ -119,7 +120,6 @@ export function ShellSubHeading(props: { const Layout = (props: LayoutProps) => { const pageTitle = typeof props.heading === "string" ? props.heading : props.title; - const router = useRouter(); return ( <> @@ -135,8 +135,8 @@ const Layout = (props: LayoutProps) => { -
- {router.route.startsWith("/v2/settings/") ? <> : } +
+ {props.SidebarContainer || }
@@ -514,9 +514,7 @@ function MobileNavigationContainer() { } const MobileNavigation = () => { - const router = useRouter(); const isEmbed = useIsEmbed(); - if (router.route.startsWith("/v2/settings/")) return null; return ( <>