diff --git a/apps/web/app/future/(individual-page-wrapper)/insights/page.tsx b/apps/web/app/future/insights/page.tsx similarity index 57% rename from apps/web/app/future/(individual-page-wrapper)/insights/page.tsx rename to apps/web/app/future/insights/page.tsx index 99de09c3eac698..0b82a624c694d4 100644 --- a/apps/web/app/future/(individual-page-wrapper)/insights/page.tsx +++ b/apps/web/app/future/insights/page.tsx @@ -1,13 +1,11 @@ -import OldPage from "@pages/insights/index"; +import LegacyPage from "@pages/insights/index"; import { _generateMetadata } from "app/_utils"; -import { headers } from "next/headers"; +import { WithLayout } from "app/layoutHOC"; import { notFound } from "next/navigation"; import { getLayout } from "@calcom/features/MainLayoutAppDir"; import { getFeatureFlagMap } from "@calcom/features/flags/server/utils"; -import PageWrapper from "@components/PageWrapperAppDir"; - export const generateMetadata = async () => await _generateMetadata( () => "Insights", @@ -25,17 +23,4 @@ async function getData() { return {}; } -const Page = async () => { - const h = headers(); - const nonce = h.get("x-nonce") ?? undefined; - - await getData(); - - return ( - - - - ); -}; - -export default Page; +export default WithLayout({ getLayout, getData, Page: LegacyPage });