mon-entreprise/reducers.js

21 lines
322 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
}
}
2016-06-29 10:27:04 +00:00
export default combineReducers({
selectTag
})