(state = {}, action)
| 15 | } |
| 16 | |
| 17 | function userUpdateReducer(state = {}, action) { |
| 18 | switch (action.type) { |
| 19 | case USER_UPDATE_REQUEST: |
| 20 | return { loading: true }; |
| 21 | case USER_UPDATE_SUCCESS: |
| 22 | return { loading: false, userInfo: action.payload }; |
| 23 | case USER_UPDATE_FAIL: |
| 24 | return { loading: false, error: action.payload }; |
| 25 | default: return state; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | function userRegisterReducer(state = {}, action) { |
| 30 | switch (action.type) { |
nothing calls this directly
no outgoing calls
no test coverage detected