aboutsummaryrefslogtreecommitdiff
path: root/src/actions/follow.js
blob: 7ab689ebb0db42a77ebfddcf96a4816536752af8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 };