[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
538 B

import { Reducer } from 'redux'
import { RegistrationActions } from '../actions/registration'
import { RegistrationState } from '../types'
const initialState: RegistrationState = {
step: 0,
}
const reducer: Reducer<RegistrationState, RegistrationActions> = (state = initialState, action) => {
switch (action.type) {
case 'REGISTRATION_SET_STEP':
return {
...state,
step: action.payload,
}
default:
return state
}
}
export default reducer