chore: app router - /event-types pages (#18181)
* refactor event type web wrapper * finish migration * move event-types folder out of future * remove vars * remove pages router * fix * fix * fix test * remove test tag * refactor * remove completely * add withoutSeo prop for event type web page * remove HeadSeo usage from event types listing view * make onboarding e2e test faster * remove useIntercom --------- Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
79d51a4989
commit
cc202ed847
14 files changed
+24
-140
No files matched your search
+4
-5
@@ -4,11 +4,10 @@ import { _generateMetadata } from "app/_utils";
|
||||
import { WithLayout } from "app/layoutHOC";
|
||||
import { cookies, headers } from "next/headers";
|
||||
|
||||
import { EventType } from "@calcom/atoms/monorepo";
|
||||
|
||||
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
||||
import { getServerSideProps } from "@lib/event-types/[type]/getServerSideProps";
|
||||
import type { PageProps as EventTypePageProps } from "@lib/event-types/[type]/getServerSideProps";
|
||||
|
||||
import EventTypePageWrapper from "~/event-types/views/event-types-single-view";
|
||||
|
||||
export const generateMetadata = async ({ params, searchParams }: PageProps) => {
|
||||
const legacyCtx = buildLegacyCtx(headers(), cookies(), params, searchParams);
|
||||
@@ -21,5 +20,5 @@ export const generateMetadata = async ({ params, searchParams }: PageProps) => {
|
||||
};
|
||||
|
||||
const getData = withAppDirSsr(getServerSideProps);
|
||||
const Page = ({ type, ...rest }: EventTypePageProps) => <EventType {...rest} id={type} isAppDir={true} />;
|
||||
export default WithLayout({ getLayout: null, getData, Page })<"P">;
|
||||
|
||||
export default WithLayout({ getLayout: null, getData, Page: EventTypePageWrapper })<"P">;
|
||||
File renamed without changes.
Reference in new issue
Block a user