remove MainLayout / MainLayoutAppDir (#18498)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-01-07 12:13:00 +00:00
1 parent 00f7d8be0d
commit 0c69c5dfea
4 files changed
+4 -40

No files matched your search

-17
View File
@@ -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>;
-17
View File
@@ -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>;