remove completion actions/reducer

This commit is contained in:
Shin'ya Ueoka 2017-10-07 07:51:39 +09:00
parent 4cb17031d1
commit 45368384d1
13 changed files with 206 additions and 261 deletions

View file

@ -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
};