19 lines
415 B
JavaScript
19 lines
415 B
JavaScript
export const searchActionTypes = {
|
|
GETSEARCH: "GETSEARCH",
|
|
SETSEARCH: "SETSEARCH",
|
|
UPDATESEARCH: "UPDATESEARCH",
|
|
};
|
|
|
|
export const getSearchObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: searchActionTypes.GETSEARCH,
|
|
});
|
|
};
|
|
|
|
export const setSearch = (search) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchActionTypes.SETSEARCH,
|
|
searchString: search,
|
|
});
|
|
};
|