diff options
| author | Dayana31 <[email protected]> | 2022-06-01 16:43:23 -0500 |
|---|---|---|
| committer | Dayana31 <[email protected]> | 2022-06-01 16:43:23 -0500 |
| commit | ec0c33156713e51c64f2a9de4f932cd5507c654b (patch) | |
| tree | cc46421686a49bbc0a0c343e460c13a21af1015d /front/odiparpack/app/redux/modules/message.js | |
| parent | 6971201caffc2fccee5bfb12e88e5510c85eeb49 (diff) | |
| parent | e9cb09907f8dbc9a4a64549a3ea4d1d8313e7c25 (diff) | |
| download | DP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.tar.gz DP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.tar.bz2 DP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.zip | |
Merge branch 'develop' into dayana
Diffstat (limited to 'front/odiparpack/app/redux/modules/message.js')
| -rw-r--r-- | front/odiparpack/app/redux/modules/message.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/front/odiparpack/app/redux/modules/message.js b/front/odiparpack/app/redux/modules/message.js new file mode 100644 index 0000000..e02eb08 --- /dev/null +++ b/front/odiparpack/app/redux/modules/message.js @@ -0,0 +1,30 @@ +import { CLOSE_MESSAGE,OPEN_MESSAGE } from 'ba-actions/actionTypes'; + +const initState = { + message: '', + type: '', + openMessage: false +} + +const message = (state = initState, action = {}) => { + + const { type, payload } = action; + + switch (type) { + + case CLOSE_MESSAGE: + return {...initState} + case OPEN_MESSAGE: + return { + ...state, + ...payload, + openMessage: true + } + default: + return state + + } + +} + +export default message;
\ No newline at end of file |
