fix: use the correct step (#8037)

pull/8036/head^2
Nafees Nazik 2023-04-02 01:44:08 +05:30 committed by GitHub
parent 352a467104
commit 458300bc83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,7 @@ const OnboardTeamMembersPage = () => {
};
OnboardTeamMembersPage.getLayout = (page: React.ReactElement) => (
<WizardLayout currentStep={1} maxSteps={2}>
<WizardLayout currentStep={2} maxSteps={2}>
{page}
</WizardLayout>
);

View File

@ -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;