blob: 95cf8f28411ddad2866ca0b9bb3593af10c0465e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { TRENDS_FETCH_SUCCESS } from '../actions/trends';
import { fromJS } from 'immutable';
const initialState = null;
export default function trendsReducer(state = initialState, action) {
switch(action.type) {
case TRENDS_FETCH_SUCCESS:
return fromJS(action.trends);
default:
return state;
}
};
|