add setting actions in content

This commit is contained in:
Shin'ya Ueoka 2017-10-22 17:45:16 +09:00
parent 7639e99b75
commit c6eb5553d0
10 changed files with 74 additions and 25 deletions

View file

@ -1,8 +1,7 @@
import actions from 'content/actions';
const defaultState = {
keys: '',
keymaps: {},
keys: ''
};
export default function reducer(state = defaultState, action = {}) {
@ -15,10 +14,6 @@ export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
keys: '',
});
case actions.INPUT_SET_KEYMAPS:
return Object.assign({}, state, {
keymaps: action.keymaps,
});
default:
return state;
}