initial docker setup
This commit is contained in:
17
frontend/src/reducers/notification/notificationReducers.js
Normal file
17
frontend/src/reducers/notification/notificationReducers.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import {UPDATE_MESSAGES} from '../../constants/notificationConstants';
|
||||
|
||||
const moduleReducers = {};
|
||||
|
||||
moduleReducers[UPDATE_MESSAGES] = (state, action) => {
|
||||
return Object.assign({}, state, {
|
||||
updateMessages: action.updateMessages
|
||||
});
|
||||
};
|
||||
|
||||
const notificationReducer = (state = {}, action) => {
|
||||
return moduleReducers[action.type]
|
||||
? moduleReducers[action.type](state, action)
|
||||
: state;
|
||||
};
|
||||
|
||||
export default notificationReducer;
|
||||
Reference in New Issue
Block a user