remove completion actions/reducer
This commit is contained in:
parent
4cb17031d1
commit
45368384d1
13 changed files with 206 additions and 261 deletions
|
@ -7,13 +7,6 @@ const showCommand = (text) => {
|
|||
};
|
||||
};
|
||||
|
||||
const setCompletions = (completions) => {
|
||||
return {
|
||||
type: actions.CONSOLE_SET_COMPLETIONS,
|
||||
completions: completions
|
||||
};
|
||||
};
|
||||
|
||||
const showError = (text) => {
|
||||
return {
|
||||
type: actions.CONSOLE_SHOW_ERROR,
|
||||
|
@ -27,4 +20,25 @@ const hide = () => {
|
|||
};
|
||||
};
|
||||
|
||||
export { showCommand, setCompletions, showError, hide };
|
||||
const setCompletions = (completions) => {
|
||||
return {
|
||||
type: actions.CONSOLE_SET_COMPLETIONS,
|
||||
completions: completions
|
||||
};
|
||||
};
|
||||
|
||||
const completionNext = () => {
|
||||
return {
|
||||
type: actions.CONSOLE_COMPLETION_NEXT,
|
||||
};
|
||||
};
|
||||
|
||||
const completionPrev = () => {
|
||||
return {
|
||||
type: actions.CONSOLE_COMPLETION_PREV,
|
||||
};
|
||||
};
|
||||
|
||||
export {
|
||||
showCommand, showError, hide, setCompletions, completionNext, completionPrev
|
||||
};
|
||||
|
|
Reference in a new issue