13 lines
306 B
JavaScript
13 lines
306 B
JavaScript
'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
|
|
}
|
|
} |