chore: app router migration - /enterprise and d/[link]/[slug] (#18101)

* use app router for /enterprise page

* use app router for /d page
This commit is contained in:
Benny Joo authored and GitHub committed 2024-12-10 23:48:24 +00:00
1 parent c2c082c105
commit 5ba676b014
4 files changed
-28

No files matched your search

File renamed without changes.
-11
View File
@@ -1,11 +0,0 @@
import { getServerSideProps, type PageProps } from "@lib/d/[link]/[slug]/getServerSideProps";
import PageWrapper from "@components/PageWrapper";
import Type from "~/d/[link]/d-type-view";
const Page = (props: PageProps) => <Type {...props} />;
export { getServerSideProps };
Page.PageWrapper = PageWrapper;
export default Page;
-17
View File
@@ -1,17 +0,0 @@
"use client";
import { getLayout } from "@calcom/features/MainLayout";
import EnterprisePage from "@components/EnterprisePage";
import PageWrapper from "@components/PageWrapper";
const ProxifiedEnterprisePage = new Proxy<{
(): JSX.Element;
PageWrapper?: typeof PageWrapper;
getLayout?: typeof getLayout;
}>(EnterprisePage, {});
ProxifiedEnterprisePage.PageWrapper = PageWrapper;
ProxifiedEnterprisePage.getLayout = getLayout;
export default ProxifiedEnterprisePage;