(state = {
order: {
orderItems: [],
shipping: {},
payment: {}
}
}, action)
| 86 | } |
| 87 | |
| 88 | function orderDeleteReducer(state = { |
| 89 | order: { |
| 90 | orderItems: [], |
| 91 | shipping: {}, |
| 92 | payment: {} |
| 93 | } |
| 94 | }, action) { |
| 95 | switch (action.type) { |
| 96 | case ORDER_DELETE_REQUEST: |
| 97 | return { loading: true }; |
| 98 | case ORDER_DELETE_SUCCESS: |
| 99 | return { loading: false, success: true }; |
| 100 | case ORDER_DELETE_FAIL: |
| 101 | return { loading: false, error: action.payload }; |
| 102 | default: return state; |
| 103 | } |
| 104 | } |
| 105 | export { |
| 106 | orderCreateReducer, orderDetailsReducer, |
| 107 | orderPayReducer, myOrderListReducer, orderListReducer, orderDeleteReducer |
nothing calls this directly
no outgoing calls
no test coverage detected