Initial commit

This commit is contained in:
mohiit1502
2020-04-16 02:41:57 +05:30
commit b8edd614d0
60 changed files with 20330 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import Immutable from 'immutable'
import {UPDATE_FORM_ERRORS, UPDATE_FORM_VALUES} from './actions'
const initialState = Immutable.Map()
const reducer = (state = initialState, action) => {
switch (action.type) {
case UPDATE_FORM_ERRORS:
case UPDATE_FORM_VALUES:
return state.mergeDeep(action.payload)
default:
return state
}
}
export default reducer