(state = {}, action)
| 27 | } |
| 28 | |
| 29 | function userRegisterReducer(state = {}, action) { |
| 30 | switch (action.type) { |
| 31 | case USER_REGISTER_REQUEST: |
| 32 | return { loading: true }; |
| 33 | case USER_REGISTER_SUCCESS: |
| 34 | return { loading: false, userInfo: action.payload }; |
| 35 | case USER_REGISTER_FAIL: |
| 36 | return { loading: false, error: action.payload }; |
| 37 | default: return state; |
| 38 | } |
| 39 | } |
| 40 | export { |
| 41 | userSigninReducer, userRegisterReducer, userUpdateReducer |
| 42 | } |
nothing calls this directly
no outgoing calls
no test coverage detected