diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-02 22:06:44 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-02 22:06:44 +0900 |
commit | b5e52a75d760c23d2ac7257056f9ba592ad17b34 (patch) | |
tree | 12d67e2840e5c1f27bc402fc47bc2aef760c5454 /src/actions | |
parent | 6f857e2c81b2d31a86d39c02b010345d3ff23a38 (diff) | |
parent | fc36195e79d5d7e59df3a507e05860ae6ca1495a (diff) |
Merge branch 'more-redux'
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/follow.js | 29 | ||||
-rw-r--r-- | src/actions/index.js | 6 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/actions/follow.js b/src/actions/follow.js new file mode 100644 index 0000000..7ab689e --- /dev/null +++ b/src/actions/follow.js @@ -0,0 +1,29 @@ +import actions from '../actions'; + +const enable = (newTab) => { + return { + type: actions.FOLLOW_ENABLE, + newTab, + }; +}; + +const disable = () => { + return { + type: actions.FOLLOW_DISABLE, + }; +}; + +const keyPress = (key) => { + return { + type: actions.FOLLOW_KEY_PRESS, + key: key + }; +}; + +const backspace = () => { + return { + type: actions.FOLLOW_BACKSPACE, + }; +}; + +export { enable, disable, keyPress, backspace }; diff --git a/src/actions/index.js b/src/actions/index.js index 63c36d2..4e8d4a7 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -17,4 +17,10 @@ export default { // Settings SETTING_SET_SETTINGS: 'setting.set.settings', + + // Follow + FOLLOW_ENABLE: 'follow.enable', + FOLLOW_DISABLE: 'follow.disable', + FOLLOW_KEY_PRESS: 'follow.key.press', + FOLLOW_BACKSPACE: 'follow.backspace', }; |