Revert "clear warning"

This reverts commit 6dfe6c6c54.
This commit is contained in:
Hristo Nedelkov 2024-01-22 20:18:36 +02:00
parent 6dfe6c6c54
commit c207a0f037
3 changed files with 28 additions and 3 deletions

View File

@ -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

View File

@ -64,4 +64,4 @@ span[class*='Connector-'] {
.custom-step::after {
font-size: 10px;
}
}
}

View File

@ -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