blob: 22daecac5361f3204e74b51d06ca2922a8cb8f96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
export const setUser = user => ({
type: 'SEARCH/SET_USER',
user,
});
export const inputChange = searchText => ({
type: 'SEARCH/INPUT_CHANGE',
searchText,
});
/**
* 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,
});
|