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:
1 parent
c2c082c105
commit
5ba676b014
4 files changed
-28
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -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;
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user