Rename .js/.jsx to .ts/.tsx
This commit is contained in:
parent
257162e5b6
commit
c60d0e7392
151 changed files with 0 additions and 0 deletions
|
@ -1,18 +0,0 @@
|
|||
import actions from 'content/actions';
|
||||
|
||||
const defaultState = {
|
||||
keys: []
|
||||
};
|
||||
|
||||
export default function reducer(state = defaultState, action = {}) {
|
||||
switch (action.type) {
|
||||
case actions.INPUT_KEY_PRESS:
|
||||
return { ...state,
|
||||
keys: state.keys.concat([action.key]), };
|
||||
case actions.INPUT_CLEAR_KEYS:
|
||||
return { ...state,
|
||||
keys: [], };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
Reference in a new issue