mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-13 11:56:26 +00:00
fix: remove two same css imports
This commit is contained in:
parent
e8a7faf12d
commit
042df5ab68
@ -1,6 +1,4 @@
|
|||||||
import { Stepper, Step } from 'react-form-stepper'
|
import { Stepper, Step } from 'react-form-stepper'
|
||||||
|
|
||||||
import './FormStepper.css'
|
|
||||||
import { useDispatch } from 'react-redux'
|
import { useDispatch } from 'react-redux'
|
||||||
|
|
||||||
import { setActiveStep } from '../../../redux/ValidatorOnboarding/slice'
|
import { setActiveStep } from '../../../redux/ValidatorOnboarding/slice'
|
||||||
@ -22,11 +20,13 @@ type FormStepperProps = {
|
|||||||
|
|
||||||
const FormStepper = ({ activeStep }: FormStepperProps) => {
|
const FormStepper = ({ activeStep }: FormStepperProps) => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
|
|
||||||
const changeStepOnClickHandler = (index: number) => {
|
const changeStepOnClickHandler = (index: number) => {
|
||||||
if (activeStep > index) {
|
if (activeStep > index) {
|
||||||
dispatch(setActiveStep(index))
|
dispatch(setActiveStep(index))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stepper
|
<Stepper
|
||||||
activeStep={activeStep}
|
activeStep={activeStep}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user