follow as redux

This commit is contained in:
Shin'ya Ueoka 2017-10-02 21:35:52 +09:00
parent 6f857e2c81
commit 0a7ae631cd
8 changed files with 297 additions and 208 deletions

29
src/actions/follow.js Normal file
View file

@ -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 };