kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
14 wiersze
365 B
JavaScript
14 wiersze
365 B
JavaScript
|
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;
|
||
|
}
|
||
|
};
|