summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/redux/modules/camion.js
blob: 03394d7a26d233836e97a689f92ef1299f818b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { LISTA_CAMION, NUEVO_CAMION } from 'ba-actions/actionTypes';

const initState = {
    camiones : []
}

const camion = (state = initState, action) => {
    switch (action.type) {
        case LISTA_CAMION:
            return { ...state, camiones: action.payload }
        case NUEVO_CAMION:
            return { ...state }
        default :
            return state
    }
}

export default camion;