diff --git a/apps/web/app/future/reschedule/[uid]/embed/page.tsx b/apps/web/app/future/reschedule/[uid]/embed/page.tsx index 52bef3e4867c2c..00602675e3ea6e 100644 --- a/apps/web/app/future/reschedule/[uid]/embed/page.tsx +++ b/apps/web/app/future/reschedule/[uid]/embed/page.tsx @@ -1,5 +1,5 @@ import { getServerSideProps } from "@pages/reschedule/[uid]"; -import { withAppDir } from "app/AppDirSSRHOC"; +import { withAppDirSsr } from "app/WithAppDirSsr"; import type { Params } from "next/dist/shared/lib/router/utils/route-matcher"; import { cookies, headers } from "next/headers"; @@ -12,8 +12,7 @@ type PageProps = Readonly<{ const Page = async ({ params }: PageProps) => { const legacyCtx = buildLegacyCtx(headers(), cookies(), params); - // @ts-expect-error Argument of type '{ query: Params; params: Params; req: { headers: ReadonlyHeaders; cookies: ReadonlyRequestCookies; }; }' - await withAppDir(withEmbedSsr(getServerSideProps))(legacyCtx); + await withAppDirSsr(withEmbedSsr(getServerSideProps))(legacyCtx); return null; }; diff --git a/apps/web/app/future/reschedule/[uid]/page.tsx b/apps/web/app/future/reschedule/[uid]/page.tsx index 40fbf05617a5d0..9900ad14d9b939 100644 --- a/apps/web/app/future/reschedule/[uid]/page.tsx +++ b/apps/web/app/future/reschedule/[uid]/page.tsx @@ -1,5 +1,5 @@ import OldPage, { getServerSideProps as _getServerSideProps } from "@pages/reschedule/[uid]"; -import { withAppDir } from "app/AppDirSSRHOC"; +import { withAppDirSsr } from "app/WithAppDirSsr"; import { _generateMetadata } from "app/_utils"; import type { Params } from "next/dist/shared/lib/router/utils/route-matcher"; import { headers, cookies } from "next/headers"; @@ -16,12 +16,11 @@ type PageProps = Readonly<{ params: Params; }>; -const getData = withAppDir(_getServerSideProps); +const getData = withAppDirSsr(_getServerSideProps); const Page = async ({ params }: PageProps) => { const legacyCtx = buildLegacyCtx(headers(), cookies(), params); - // @ts-expect-error Argument of type '{ query: Params; params: Params; req: { headers: ReadonlyHeaders; cookies: ReadonlyRequestCookies; }; }' await getData(legacyCtx); return ; diff --git a/apps/web/app/future/workflows/[workflow]/page.tsx b/apps/web/app/future/workflows/[workflow]/page.tsx index f0c5c5eaa6bdca..f368cf6a8cdcc5 100644 --- a/apps/web/app/future/workflows/[workflow]/page.tsx +++ b/apps/web/app/future/workflows/[workflow]/page.tsx @@ -35,7 +35,6 @@ async function getProps(context: GetServerSidePropsContext) { export const generateStaticParams = () => []; -// @ts-expect-error getData arg export default WithLayout({ getLayout: null, getData: getProps, Page: LegacyPage })<"P">; export const dynamic = "force-static"; // generate segments on demand