diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
commit | cd4708898134f5966f87df4aeaa8ed8c60e7943f (patch) | |
tree | db082d9cb2ec426010556dbc24ab439c9757afbd /src/actions/console.js | |
parent | c5529958d53146c8c6826673abe6431a19f1924d (diff) | |
parent | 9ae814dfe45426f8df9b89b305392770344a7d50 (diff) |
Merge branch 'lint'
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 }; |