search settings in store

This commit is contained in:
Shin'ya Ueoka 2017-10-01 15:04:23 +09:00
parent 7a85b203ac
commit 27aa739caf
7 changed files with 47 additions and 61 deletions

View file

@ -2,7 +2,6 @@ import actions from '../actions';
const defaultState = {
keys: [],
keymaps: {}
};
export default function reducer(state = defaultState, action = {}) {
@ -20,11 +19,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,
keys: [],
});
default:
return state;
}