soapbox/app/soapbox/reducers/theme.js

16 wiersze
306 B
JavaScript
Czysty Zwykły widok Historia

2020-05-31 00:05:01 +00:00
import {
SET_THEME,
} from '../actions/theme';
import { Map as ImmutableMap } from 'immutable';
const initialState = ImmutableMap();
export default function theme(state = initialState, action) {
switch(action.type) {
case SET_THEME:
return action.themeData;
default:
return state;
}
};