blob: 35be30444f25f42c0ca30e8e6dc64ca566c90ccf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { STATUS_CARD_FETCH_SUCCESS } from 'themes/glitch/actions/cards';
import { Map as ImmutableMap, fromJS } from 'immutable';
const initialState = ImmutableMap();
export default function cards(state = initialState, action) {
switch(action.type) {
case STATUS_CARD_FETCH_SUCCESS:
return state.set(action.id, fromJS(action.card));
default:
return state;
}
};
|