follow as redux
This commit is contained in:
parent
6f857e2c81
commit
0a7ae631cd
8 changed files with 297 additions and 208 deletions
29
src/actions/follow.js
Normal file
29
src/actions/follow.js
Normal 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 };
|
Reference in a new issue