diff --git a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx index 56fab68b..3b51e8c2 100644 --- a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx +++ b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx @@ -7,19 +7,19 @@ import './FormStepper.css' type FormStepperProps = { activeStep: number - windowWidth: number } -const FormStepper = ({ activeStep, windowWidth }: FormStepperProps) => { +const FormStepper = ({ activeStep }: FormStepperProps) => { const dispatch = useDispatch() + const isStepVisible = (index: number) => { - if (windowWidth < 740) { - const start = Math.max(0, activeStep - 1) - const end = Math.min(FORM_STEPS.length - 1, activeStep + 1) - return index >= start && index <= end - } else { - return true - } + // if (windowWidth < 1025) { + // const start = activeStep - 1 + // const end = Math.min(FORM_STEPS.length - 1, activeStep + 1) + // return index >= start && index <= end + // } else { + return true + // } } const changeStepOnClickHandler = (index: number) => { diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index 6888c3b4..7d7e39d0 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -54,7 +54,7 @@ const ValidatorOnboarding = () => { titleSize={19} subtitle="Earn Rewards for securing the Ethereum Network" /> - + {activeStep === 0 && } {activeStep === 1 && }