summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/redux/modules/almacen.js
diff options
context:
space:
mode:
Diffstat (limited to 'front/odiparpack/app/redux/modules/almacen.js')
-rw-r--r--front/odiparpack/app/redux/modules/almacen.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/front/odiparpack/app/redux/modules/almacen.js b/front/odiparpack/app/redux/modules/almacen.js
new file mode 100644
index 0000000..bb9b7d6
--- /dev/null
+++ b/front/odiparpack/app/redux/modules/almacen.js
@@ -0,0 +1,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; \ No newline at end of file