19 lines
585 B
JavaScript
19 lines
585 B
JavaScript
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,
|
|
});
|
|
};
|