add mock api calls for modules viewall component
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
export const currentViewActionTypes = {
|
||||
GETCURRENTVIEW: "GETCURRENTVIEW",
|
||||
SETCURRENTVIEW: "SETCURRENTVIEW",
|
||||
};
|
||||
|
||||
export const getCurrentViewObj = () => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.GETCURRENTVIEW,
|
||||
});
|
||||
};
|
||||
|
||||
export const setCurrentView = (currentView) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETCURRENTVIEW,
|
||||
currentView: currentView,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user