fix: use the correct step (#8037)
parent
352a467104
commit
458300bc83
|
@ -19,7 +19,7 @@ const OnboardTeamMembersPage = () => {
|
|||
};
|
||||
|
||||
OnboardTeamMembersPage.getLayout = (page: React.ReactElement) => (
|
||||
<WizardLayout currentStep={1} maxSteps={2}>
|
||||
<WizardLayout currentStep={2} maxSteps={2}>
|
||||
{page}
|
||||
</WizardLayout>
|
||||
);
|
||||
|
|
|
@ -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 (
|
||||
<WizardLayout currentStep={1} maxSteps={2}>
|
||||
{page}
|
||||
</WizardLayout>
|
||||
);
|
||||
};
|
||||
|
||||
CreateNewTeamPage.getLayout = getLayout;
|
||||
CreateNewTeamPage.getLayout = LayoutWrapper;
|
||||
|
||||
export default CreateNewTeamPage;
|
||||
|
|
Loading…
Reference in New Issue