From 0bfa8a05aa6819e3cbf15a31b2e8ab45289eeaba Mon Sep 17 00:00:00 2001 From: hbjORbj Date: Tue, 7 Jan 2025 06:41:44 -0500 Subject: [PATCH] remove MainLayout / MainLayoutAppDir --- apps/web/app/enterprise/page.tsx | 4 +--- apps/web/components/EnterprisePage.tsx | 6 +++--- packages/features/MainLayout.tsx | 17 ----------------- packages/features/MainLayoutAppDir.tsx | 17 ----------------- 4 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 packages/features/MainLayout.tsx delete mode 100644 packages/features/MainLayoutAppDir.tsx diff --git a/apps/web/app/enterprise/page.tsx b/apps/web/app/enterprise/page.tsx index 84a063edfebf91..2b3b1752f06d95 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.tsx index 43f2f202ba4555..af7ad4785f7bd3 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 (
- + <>Create Org - +
); } diff --git a/packages/features/MainLayout.tsx b/packages/features/MainLayout.tsx deleted file mode 100644 index 03a739c8750677..00000000000000 --- 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) { - return ( - - {children} - - ); -} - -export const getLayout = (page: React.ReactElement) => {page}; diff --git a/packages/features/MainLayoutAppDir.tsx b/packages/features/MainLayoutAppDir.tsx deleted file mode 100644 index 6d14c05f74cbbb..00000000000000 --- 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; -export default function MainLayoutAppDir({ children, ...rest }: MainLayoutAppDirProps) { - return ( - - {children} - - ); -} - -export const getLayout = (page: React.ReactElement) => {page};