19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
export const progressActionTypes = {
|
|
GETPROGRESS: "GETPROGRESS",
|
|
SETPROGRESS: "SETPROGRESS",
|
|
UPDATEPROGRESS: "UPDATEPROGRESS",
|
|
};
|
|
|
|
export const getProgressObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: progressActionTypes.GETPROGRESS,
|
|
});
|
|
};
|
|
|
|
export const setProgress = (progress) => (dispatch) => {
|
|
return dispatch({
|
|
type: progressActionTypes.SETPROGRESS,
|
|
progressObj: progress,
|
|
});
|
|
};
|