27 lines
784 B
JavaScript
27 lines
784 B
JavaScript
export const watchedCasesActionTypes = {
|
|
GETWATCHEDCASES: "GETWATCHEDCASES",
|
|
SETWATCHEDCASES: "SETWATCHEDCASES",
|
|
SETWATCHEDCASESDETAILS: "SETWATCHEDCASESDETAILS",
|
|
UPDATEWATCHEDCASES: "UPDATEWATCHEDCASES",
|
|
};
|
|
|
|
export const getWatchedCasesObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: watchedCasesActionTypes.GETWATCHEDCASES,
|
|
});
|
|
};
|
|
|
|
export const setWatchedCases = (watchedCases) => (dispatch) => {
|
|
return dispatch({
|
|
type: watchedCasesActionTypes.SETWATCHEDCASES,
|
|
watchedCases: watchedCases,
|
|
});
|
|
};
|
|
|
|
export const setWatchedCasesDetails = (watchedCasesDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: watchedCasesActionTypes.SETWATCHEDCASESDETAILS,
|
|
watchedCasesDetails: watchedCasesDetails,
|
|
});
|
|
};
|