fix: use the correct step (#8037)

This commit is contained in:
Nafees Nazik
2023-04-01 22:14:08 +02:00
committed by GitHub
parent 352a467104
commit 458300bc83
2 changed files with 10 additions and 3 deletions
@@ -19,7 +19,7 @@ const OnboardTeamMembersPage = () => {
};
OnboardTeamMembersPage.getLayout = (page: React.ReactElement) => (
<WizardLayout currentStep={1} maxSteps={2}>
<WizardLayout currentStep={2} maxSteps={2}>
{page}
</WizardLayout>
);
+9 -2
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;