From c60d0e7392fc708e961614d6b756a045de74f458 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 30 Apr 2019 14:00:07 +0900 Subject: Rename .js/.jsx to .ts/.tsx --- src/content/actions/follow-controller.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/content/actions/follow-controller.ts (limited to 'src/content/actions/follow-controller.ts') diff --git a/src/content/actions/follow-controller.ts b/src/content/actions/follow-controller.ts new file mode 100644 index 0000000..006b248 --- /dev/null +++ b/src/content/actions/follow-controller.ts @@ -0,0 +1,30 @@ +import actions from 'content/actions'; + +const enable = (newTab, background) => { + return { + type: actions.FOLLOW_CONTROLLER_ENABLE, + newTab, + background, + }; +}; + +const disable = () => { + return { + type: actions.FOLLOW_CONTROLLER_DISABLE, + }; +}; + +const keyPress = (key) => { + return { + type: actions.FOLLOW_CONTROLLER_KEY_PRESS, + key: key + }; +}; + +const backspace = () => { + return { + type: actions.FOLLOW_CONTROLLER_BACKSPACE, + }; +}; + +export { enable, disable, keyPress, backspace }; -- cgit v1.2.3