brutal-legends/src/reducers/visibility-filter.js

11 lines
261 B
JavaScript
Raw Normal View History

2018-11-21 17:07:03 +01:00
import { SET_VISIBILITY_FILTER } from '../actions';
export default (state = '', action) => {
switch (action.type) {
case SET_VISIBILITY_FILTER:
return action.payload.filter;
default:
return state;
}
};