This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/src/settings/reducers/setting.js
2017-10-09 17:03:52 +09:00

21 lines
374 B
JavaScript

import actions from 'settings/actions';
const defaultState = {
source: '',
json: '',
value: {}
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.SETTING_SET_SETTINGS:
return {
source: action.source,
json: action.json,
value: action.value,
};
default:
return state;
}
}