28 lines
928 B
JavaScript
28 lines
928 B
JavaScript
export const myRepresentationsActionTypes = {
|
|
GETMYREPRESENTATIONS: "GETMYREPRESENTATIONS",
|
|
SETMYREPRESENTATIONS: "SETMYREPRESENTATIONS",
|
|
SETMYREPRESENTATIONSDETAILS: "SETMYREPRESENTATIONSDETAILS",
|
|
UPDATEMYREPRESENTATIONS: "UPDATEMYREPRESENTATIONS",
|
|
};
|
|
|
|
export const getMyRepresentationsObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: myRepresentationsActionTypes.GETMYREPRESENTATIONS,
|
|
});
|
|
};
|
|
|
|
export const setMyRepresentations = (myRepresentations) => (dispatch) => {
|
|
return dispatch({
|
|
type: myRepresentationsActionTypes.SETMYREPRESENTATIONS,
|
|
myRepresentations: myRepresentations,
|
|
});
|
|
};
|
|
|
|
export const setMyRepresentationsDetails =
|
|
(myRepresentationsDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: myRepresentationsActionTypes.SETMYREPRESENTATIONSDETAILS,
|
|
myRepresentationsDetails: myRepresentationsDetails,
|
|
});
|
|
};
|