diff options
| author | gabrhr <[email protected]> | 2022-06-05 18:37:58 -0500 |
|---|---|---|
| committer | gabrhr <[email protected]> | 2022-06-05 18:37:58 -0500 |
| commit | 6f5fc69d4c518efb54814efa028baed797008ab3 (patch) | |
| tree | 044a7d8b382606a9b999d746923f121898a35dd9 /front/odiparpack/app/redux/modules | |
| parent | f4435233c0aad92f63ee097831565875a6dc903c (diff) | |
| download | DP1_project-6f5fc69d4c518efb54814efa028baed797008ab3.tar.gz DP1_project-6f5fc69d4c518efb54814efa028baed797008ab3.tar.bz2 DP1_project-6f5fc69d4c518efb54814efa028baed797008ab3.zip | |
Add get Camiones
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
Diffstat (limited to 'front/odiparpack/app/redux/modules')
| -rw-r--r-- | front/odiparpack/app/redux/modules/camion.js | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
