mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
21 lines
344 B
JavaScript
21 lines
344 B
JavaScript
/* @flow */
|
|
|
|
import {Map} from 'immutable';
|
|
import * as actions from '../actions/items';
|
|
|
|
const initialState = Map({
|
|
features: Map({})
|
|
});
|
|
|
|
export default (state = initialState, action) => {
|
|
switch(action.type) {
|
|
|
|
// Override config if worked
|
|
case actions.UPDATE_SETTINGS:
|
|
return action.config;
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
};
|