soapbox/app/gabsocial/reducers/soapbox.js

14 wiersze
365 B
JavaScript
Czysty Zwykły widok Historia

import { SOAPBOX_CONFIG_IMPORT } from '../actions/soapbox';
import { Map as ImmutableMap, fromJS } from 'immutable';
const initialState = ImmutableMap();
export default function soapbox(state = initialState, action) {
switch(action.type) {
case SOAPBOX_CONFIG_IMPORT:
return ImmutableMap(fromJS(action.soapboxConfig));
default:
return state;
}
};