first commit
This commit is contained in:
13
lib/components/notifications/reducer.js
Normal file
13
lib/components/notifications/reducer.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
const {RECEIVE_NOTIFICATIONS} = require('./action_constants')
|
||||
|
||||
module.exports = (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case RECEIVE_NOTIFICATIONS:
|
||||
return Object.assign({}, state, {
|
||||
notifications: action.notifications
|
||||
})
|
||||
default:
|
||||
return state
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user