parent
6dfe6c6c54
commit
c207a0f037
|
@ -15,7 +15,8 @@ import {
|
|||
setIsCopyPastedPhrase,
|
||||
setValidWords,
|
||||
} from '../../redux/ValidatorOnboarding/KeyGeneration/slice'
|
||||
|
||||
import { setSubStepAdvisories } from '../../redux/ValidatorOnboarding/Advisories/slice'
|
||||
|
||||
const ContinueButton = () => {
|
||||
const [isDisabled, setIsDisabled] = useState(false)
|
||||
const {
|
||||
|
@ -31,7 +32,8 @@ const ContinueButton = () => {
|
|||
(state: RootState) => state.validatorOnboarding,
|
||||
)
|
||||
const { isValidatorSet } = useSelector((state: RootState) => state.validatorSetup)
|
||||
|
||||
const { subStepAdvisories } = useSelector((state: RootState) => state.advisories)
|
||||
|
||||
const dispatch = useDispatch()
|
||||
const navigate = useNavigate()
|
||||
const isActivationValScreen = activeStep === 3 && subStepValidatorSetup === 3
|
||||
|
|
|
@ -64,4 +64,4 @@ span[class*='Connector-'] {
|
|||
.custom-step::after {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
|
||||
|
||||
interface AdvisoriesState {
|
||||
subStepAdvisories: number
|
||||
}
|
||||
|
||||
const initialState = {
|
||||
subStepAdvisories: 0,
|
||||
}
|
||||
|
||||
const AdvisoriesSlice = createSlice({
|
||||
name: 'advisories',
|
||||
initialState,
|
||||
reducers: {
|
||||
setSubStepAdvisories: (state: AdvisoriesState, action: PayloadAction<number>) => {
|
||||
state.subStepAdvisories = action.payload
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
export const { setSubStepAdvisories } = AdvisoriesSlice.actions
|
||||
|
||||
export default AdvisoriesSlice.reducer
|
Loading…
Reference in New Issue