(state = {
orders: []
}, action)
| 54 | } |
| 55 | |
| 56 | function orderListReducer(state = { |
| 57 | orders: [] |
| 58 | }, action) { |
| 59 | switch (action.type) { |
| 60 | case ORDER_LIST_REQUEST: |
| 61 | return { loading: true }; |
| 62 | case ORDER_LIST_SUCCESS: |
| 63 | return { loading: false, orders: action.payload }; |
| 64 | case ORDER_LIST_FAIL: |
| 65 | return { loading: false, error: action.payload }; |
| 66 | default: return state; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | function orderPayReducer(state = { |
| 71 | order: { |
nothing calls this directly
no outgoing calls
no test coverage detected