remove MainLayout / MainLayoutAppDir (#18498)
This commit is contained in:
1 parent
00f7d8be0d
commit
0c69c5dfea
4 files changed
+4
-40
No files matched your search
@@ -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>;
|
||||
@@ -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>;
|
||||
Reference in new issue
Block a user