brutal-legends/src/reducers/visibility-filter.js
2018-11-26 11:31:53 +01:00

10 lines
261 B
JavaScript

import { SET_VISIBILITY_FILTER } from '../actions';
export default (state = '', action) => {
switch (action.type) {
case SET_VISIBILITY_FILTER:
return action.payload.filter;
default:
return state;
}
};