diff --git a/apps/web/pages/settings/teams/[id]/onboard-members.tsx b/apps/web/pages/settings/teams/[id]/onboard-members.tsx index 4703b6bad7..313db59910 100644 --- a/apps/web/pages/settings/teams/[id]/onboard-members.tsx +++ b/apps/web/pages/settings/teams/[id]/onboard-members.tsx @@ -19,7 +19,7 @@ const OnboardTeamMembersPage = () => { }; OnboardTeamMembersPage.getLayout = (page: React.ReactElement) => ( - + {page} ); diff --git a/apps/web/pages/settings/teams/new/index.tsx b/apps/web/pages/settings/teams/new/index.tsx index 9869847447..b129912117 100644 --- a/apps/web/pages/settings/teams/new/index.tsx +++ b/apps/web/pages/settings/teams/new/index.tsx @@ -3,7 +3,7 @@ import Head from "next/head"; import { CreateANewTeamForm } from "@calcom/features/ee/teams/components"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { getLayout } from "@components/layouts/WizardLayout"; +import WizardLayout from "@components/layouts/WizardLayout"; const CreateNewTeamPage = () => { const { t } = useLocale(); @@ -17,7 +17,14 @@ const CreateNewTeamPage = () => { ); }; +const LayoutWrapper = (page: React.ReactElement) => { + return ( + + {page} + + ); +}; -CreateNewTeamPage.getLayout = getLayout; +CreateNewTeamPage.getLayout = LayoutWrapper; export default CreateNewTeamPage;