aboutsummaryrefslogtreecommitdiff
path: root/src/actions/console.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 08:59:12 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 08:59:12 +0900
commit9ae814dfe45426f8df9b89b305392770344a7d50 (patch)
treedb082d9cb2ec426010556dbc24ab439c9757afbd /src/actions/console.js
parentc5529958d53146c8c6826673abe6431a19f1924d (diff)
more strict lint
Diffstat (limited to 'src/actions/console.js')
-rw-r--r--src/actions/console.js22
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 };