The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
312 B

  1. import { FILTERS_FETCH_SUCCESS } from '../actions/filters';
  2. import { List as ImmutableList, fromJS } from 'immutable';
  3. export default function filters(state = ImmutableList(), action) {
  4. switch(action.type) {
  5. case FILTERS_FETCH_SUCCESS:
  6. return fromJS(action.filters);
  7. default:
  8. return state;
  9. }
  10. };