From 62088f6bc7fb3eba075ce702a6bed7318179c8ba Mon Sep 17 00:00:00 2001 From: Priya-tik Date: Wed, 7 May 2025 10:24:29 +0200 Subject: [PATCH] Fix: Resolved conflicts in NewUserWizard.tsx during interactive rebase. --- .../users/partials/wizard/NewUserWizard.tsx | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/components/users/partials/wizard/NewUserWizard.tsx b/src/components/users/partials/wizard/NewUserWizard.tsx index 0c64b00afd..0732a33191 100644 --- a/src/components/users/partials/wizard/NewUserWizard.tsx +++ b/src/components/users/partials/wizard/NewUserWizard.tsx @@ -83,12 +83,25 @@ const NewUserWizard = ({ {/* Navigation buttons and validation */} formik.handleSubmit()} - previousPage={() => close()} - cancelTranslationString={"CANCEL"} - /> + isLast={tab === 1} + formik={formik} + nextPage={() => { + if (tab < 1) { + setTab(tab + 1); + } else { + formik.handleSubmit(); + } + }} + previousPage={() => { + if (tab > 0) { + setTab(tab - 1); + } else { + close(); + } + }} + cancelTranslationString={"CANCEL"} + /> + ); }}