mon-entreprise/reducers.js

20 lines
321 B
JavaScript
Raw Normal View History

2016-06-29 10:27:04 +00:00
import { combineReducers } from 'redux'
import { SELECT_TAG } from './actions'
function selectTag(state = {}, action) {
switch (action.type) {
case SELECT_TAG:
return Object.assign({}, state, {
[action.tagName]: action.tagValue
})
default:
return state
}
}
export default combineReducers({
selectTag
})