fix but failed
This commit is contained in:
parent
03cf265eff
commit
e2fb33bdc5
20 changed files with 74 additions and 98 deletions
|
@ -7,13 +7,11 @@ const defaultState = {
|
|||
export default function reducer(state = defaultState, action = {}) {
|
||||
switch (action.type) {
|
||||
case actions.INPUT_KEY_PRESS:
|
||||
return Object.assign({}, state, {
|
||||
keys: state.keys.concat([action.key]),
|
||||
});
|
||||
return { ...state,
|
||||
keys: state.keys.concat([action.key]), };
|
||||
case actions.INPUT_CLEAR_KEYS:
|
||||
return Object.assign({}, state, {
|
||||
keys: [],
|
||||
});
|
||||
return { ...state,
|
||||
keys: [], };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
|
Reference in a new issue