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/content/reducers/setting.js
2017-11-05 07:47:05 +09:00

15 lines
284 B
JavaScript

import actions from 'content/actions';
const defaultState = {
keymaps: {},
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.SETTING_SET:
return Object.assign({}, action.value);
default:
return state;
}
}