18 lines
445 B
JavaScript
18 lines
445 B
JavaScript
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,
|
|
});
|
|
};
|