[WMS-55] Create/Edit User

This commit is contained in:
m0n02hz
2022-03-02 00:41:24 +05:30
parent 315113630e
commit c2b632e33b
45 changed files with 41607 additions and 190 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