search settings in store
This commit is contained in:
parent
7a85b203ac
commit
27aa739caf
7 changed files with 47 additions and 61 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue