aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/actions/search.js
blob: 1b6847d4540d1141c1dc5b32b71123e3b4e88dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export const inputChange = typedValue => ({
  type: 'SEARCH/INPUT_CHANGE',
  typedValue,
});

/**
 * Change the selected result.
 * @param {+1/-1} relativeChange usually +1 or -1, the change relative to the
 *     current result.
 */
export const changeSelectedResult = relativeChange => ({
  type: 'SEARCH/CHANGE_SELECTED_RESULT',
  relativeChange,
});