mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
fix: style stepper
This commit is contained in:
parent
bf4c721c9b
commit
29c8aec33f
@ -6,46 +6,44 @@ const FormStepper = () => {
|
||||
const [activeStep, setActiveStep] = useState<number>(0)
|
||||
|
||||
return (
|
||||
<div style={{ zIndex: 999 }}>
|
||||
<Stepper
|
||||
activeStep={activeStep}
|
||||
nonLinear={true}
|
||||
styleConfig={stepStyle}
|
||||
connectorStyleConfig={customConnectorStyle}
|
||||
style={{ fontSize: '14px' }}
|
||||
>
|
||||
<Step
|
||||
className="custom-step"
|
||||
label={'Overview'}
|
||||
onClick={() => setActiveStep(0)}
|
||||
completed={activeStep >= 0}
|
||||
/>
|
||||
<Step
|
||||
className="custom-step"
|
||||
label="Advicsories"
|
||||
onClick={() => setActiveStep(1)}
|
||||
completed={activeStep > 0}
|
||||
/>
|
||||
<Step
|
||||
label="Validator Setup"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(2)}
|
||||
completed={activeStep > 1}
|
||||
/>
|
||||
<Step
|
||||
label="Key Generation"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(3)}
|
||||
completed={activeStep > 2}
|
||||
/>
|
||||
<Step
|
||||
label="Activation"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(4)}
|
||||
completed={activeStep > 3}
|
||||
/>
|
||||
</Stepper>
|
||||
</div>
|
||||
<Stepper
|
||||
activeStep={activeStep}
|
||||
nonLinear={true}
|
||||
styleConfig={stepStyle}
|
||||
connectorStyleConfig={customConnectorStyle}
|
||||
style={{ fontSize: '14px', zIndex: 999, width: '100%', padding: 0, marginBottom: '1rem' }}
|
||||
>
|
||||
<Step
|
||||
className="custom-step"
|
||||
label={'Overview'}
|
||||
onClick={() => setActiveStep(0)}
|
||||
completed={activeStep >= 0}
|
||||
/>
|
||||
<Step
|
||||
className="custom-step"
|
||||
label="Advicsories"
|
||||
onClick={() => setActiveStep(1)}
|
||||
completed={activeStep > 0}
|
||||
/>
|
||||
<Step
|
||||
label="Validator Setup"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(2)}
|
||||
completed={activeStep > 1}
|
||||
/>
|
||||
<Step
|
||||
label="Key Generation"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(3)}
|
||||
completed={activeStep > 2}
|
||||
/>
|
||||
<Step
|
||||
label="Activation"
|
||||
className="custom-step"
|
||||
onClick={() => setActiveStep(4)}
|
||||
completed={activeStep > 3}
|
||||
/>
|
||||
</Stepper>
|
||||
)
|
||||
}
|
||||
const stepStyle = {
|
||||
@ -59,7 +57,6 @@ const stepStyle = {
|
||||
activeBorderWidth: '2px',
|
||||
// For completed dots:
|
||||
completedBgColor: '#2A4CF4',
|
||||
|
||||
activeTextColor: '#ffffff',
|
||||
completedTextColor: '#ffffff',
|
||||
inactiveTextColor: '#000000',
|
||||
|
@ -30,7 +30,5 @@
|
||||
height: 20px;
|
||||
background-color: #2a4cf4;
|
||||
border-radius: 50%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user