From 6f5fc69d4c518efb54814efa028baed797008ab3 Mon Sep 17 00:00:00 2001 From: gabrhr <73925454+gabrhr@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:37:58 -0500 Subject: Add get Camiones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit redux y más funciona de camiones #TODO - añadir todos los puntos - Mejorar el path del punto con funcion - añadir tiempos segun distancia - estetica al final (camion, colores, etc) - Arreglar combos - Añadir los reducer de pedidos, rutas, almacen --- front/odiparpack/app/redux/modules/camion.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 front/odiparpack/app/redux/modules/camion.js (limited to 'front/odiparpack/app/redux/modules') diff --git a/front/odiparpack/app/redux/modules/camion.js b/front/odiparpack/app/redux/modules/camion.js new file mode 100644 index 0000000..5cfe7d8 --- /dev/null +++ b/front/odiparpack/app/redux/modules/camion.js @@ -0,0 +1,16 @@ +import { LISTA_CAMION } from 'ba-actions/actionTypes'; + +const initState = { + camiones : [] +} + +const camion = (state = initState, action) => { + switch (action.type) { + case LISTA_CAMION: + return { ...state, camiones: action.payload } + default : + return state + } +} + +export default camion; \ No newline at end of file -- cgit v1.2.3