Scheduling infrastructure for absolutely everyone.
remove MainLayout / MainLayoutAppDir (#18498)
Benny Joo0c69c5dfeaf2
diff --git a/apps/web/app/enterprise/page.tsx b/apps/web/app/enterprise/page.tsxindex 84a063edfeb..2b3b1752f06 100644--- a/apps/web/app/enterprise/page.tsx+++ b/apps/web/app/enterprise/page.tsx@@ -1,8 +1,6 @@import { _generateMetadata } from "app/_utils";import { WithLayout } from "app/layoutHOC";-import { getLayout } from "@calcom/features/MainLayoutAppDir";-import EnterprisePage from "@components/EnterprisePage";export const generateMetadata = async () =>@@ -11,4 +9,4 @@ export const generateMetadata = async () =>(t) => t("create_your_org_description"));-export default WithLayout({ getLayout, Page: EnterprisePage })<"P">;+export default WithLayout({ Page: EnterprisePage })<"P">;diff --git a/apps/web/components/EnterprisePage.tsx b/apps/web/components/EnterprisePage.tsxindex 43f2f202ba4..af7ad4785f7 100644--- a/apps/web/components/EnterprisePage.tsx+++ b/apps/web/components/EnterprisePage.tsx@@ -1,6 +1,6 @@"use client";-import { ShellMain } from "@calcom/features/shell/Shell";+import Shell from "@calcom/features/shell/Shell";import { UpgradeTip } from "@calcom/features/tips";import { useLocale } from "@calcom/lib/hooks/useLocale";import { Button, ButtonGroup, Icon } from "@calcom/ui";@@ -42,7 +42,7 @@ export default function EnterprisePage() {];return (<div>- <ShellMain heading={t("enterprise")} subtitle={t("enterprise_description")}>+ <Shell heading={t("enterprise")} subtitle={t("enterprise_description")}><UpgradeTipplan="enterprise"title={t("create_your_org")}@@ -63,7 +63,7 @@ export default function EnterprisePage() {}><>Create Org</></UpgradeTip>- </ShellMain>+ </Shell></div>);}diff --git a/packages/features/MainLayout.tsx b/packages/features/MainLayout.tsxdeleted file mode 100644index 03a739c8750..00000000000--- a/packages/features/MainLayout.tsx+++ /dev/null@@ -1,17 +0,0 @@-import type { ComponentProps } from "react";-import React from "react";--import Shell from "@calcom/features/shell/Shell";--export default function MainLayout({- children,- ...rest-}: { children: React.ReactNode } & ComponentProps<typeof Shell>) {- return (- <Shell withoutMain={true} {...rest}>- {children}- </Shell>- );-}--export const getLayout = (page: React.ReactElement) => <MainLayout>{page}</MainLayout>;diff --git a/packages/features/MainLayoutAppDir.tsx b/packages/features/MainLayoutAppDir.tsxdeleted file mode 100644index 6d14c05f74c..00000000000--- a/packages/features/MainLayoutAppDir.tsx+++ /dev/null@@ -1,17 +0,0 @@-"use client";--import type { ComponentProps } from "react";-import React from "react";--import Shell from "@calcom/features/shell/Shell";--export type MainLayoutAppDirProps = { children: React.ReactNode } & ComponentProps<typeof Shell>;-export default function MainLayoutAppDir({ children, ...rest }: MainLayoutAppDirProps) {- return (- <Shell withoutMain={true} {...rest}>- {children}- </Shell>- );-}--export const getLayout = (page: React.ReactElement) => <MainLayoutAppDir>{page}</MainLayoutAppDir>;