summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/redux/modules/almacen.js
blob: bb9b7d66a915f075d68da16ba0814a4645764001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { LISTA_ALMACEN } from 'ba-actions/actionTypes';

const initState = {
    almacenes : []
}

const almacen = (state = initState, action) => {
    switch (action.type) {
        case LISTA_ALMACEN:
            return { ...state, pedidos: action.payload }
        default :
            return state
    }
}

export default almacen;