add mock api calls for modules viewall component
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export const myCasesActionTypes = {
|
||||
GETMYCASES: "GETMYCASES",
|
||||
SETMYCASES: "SETMYCASES",
|
||||
UPDATEMYCASES: "UPDATEMYCASES",
|
||||
};
|
||||
|
||||
export const getMyCasesObj = () => (dispatch) => {
|
||||
return dispatch({
|
||||
type: myCasesActionTypes.GETMYCASES,
|
||||
});
|
||||
};
|
||||
|
||||
export const setMyCases = (myCases) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: myCasesActionTypes.SETMYCASES,
|
||||
myCases: myCases,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user