added mock api call for homepage and viewall

This commit is contained in:
2021-07-29 14:51:27 +01:00
parent a0f777e6cb
commit a084b569c9
30 changed files with 884 additions and 112 deletions
+18
View File
@@ -0,0 +1,18 @@
export const myRepresentationsActionTypes = {
GETMYREPRESENTATIONS: "GETMYREPRESENTATIONS",
SETMYREPRESENTATIONS: "SETMYREPRESENTATIONS",
UPDATEMYREPRESENTATIONS: "UPDATEMYREPRESENTATIONS",
};
export const getMyRepresentationsObj = () => (dispatch) => {
return dispatch({
type: myRepresentationsActionTypes.GETMYREPRESENTATIONS,
});
};
export const setMyRepresentations = (myRepresentations) => (dispatch) => {
return dispatch({
type: myRepresentationsActionTypes.SETMYREPRESENTATIONS,
myRepresentations: myRepresentations,
});
};