diff options
| author | Dayana31 <[email protected]> | 2022-06-05 23:30:20 -0500 |
|---|---|---|
| committer | Dayana31 <[email protected]> | 2022-06-05 23:30:20 -0500 |
| commit | aeca067db6bcec49d7852fc28ad7a8107c1f07b6 (patch) | |
| tree | 53388039ef51db2795c298c8a7ed61461f0120e6 /front/odiparpack/app/redux/modules | |
| parent | b76694b364e99ceb7a3616de88f0d7b5ff728859 (diff) | |
| parent | 3a91d18704ee5ac783b398b1589ee2b14ea35321 (diff) | |
| download | DP1_project-aeca067db6bcec49d7852fc28ad7a8107c1f07b6.tar.gz DP1_project-aeca067db6bcec49d7852fc28ad7a8107c1f07b6.tar.bz2 DP1_project-aeca067db6bcec49d7852fc28ad7a8107c1f07b6.zip | |
Merge branch 'gabshr' into dayana
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 |
