diff options
Diffstat (limited to 'src/actions/console.js')
-rw-r--r-- | src/actions/console.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/actions/console.js b/src/actions/console.js index 99a46e8..e0ec631 100644 --- a/src/actions/console.js +++ b/src/actions/console.js @@ -1,28 +1,30 @@ import actions from '../actions'; -export function showCommand(text) { +const showCommand = (text) => { return { type: actions.CONSOLE_SHOW_COMMAND, text: text }; -} +}; -export function setCompletions(completions) { - return { +const setCompletions = (completions) => { + return { type: actions.CONSOLE_SET_COMPLETIONS, completions: completions }; -} +}; -export function showError(text) { +const showError = (text) => { return { type: actions.CONSOLE_SHOW_ERROR, text: text }; -} +}; -export function hide() { - return { +const hide = () => { + return { type: actions.CONSOLE_HIDE }; -} +}; + +export { showCommand, setCompletions, showError, hide }; |