updated cookie manger added cookie policy

This commit is contained in:
2021-11-11 10:51:04 +00:00
parent f7f474dfd2
commit 9d54b0cd2d
17 changed files with 713 additions and 51 deletions
+8
View File
@@ -5,6 +5,7 @@ export const searchResultsActionTypes = {
SETSEARCHDETAILS: "SETSEARCHDETAILS",
SETDOCUMENTDETAILS: "SETDOCUMENTDETAILS",
SETDOCUMENTHISTORY: "SETDOCUMENTHISTORY",
SETREPRESENTATIONS: "SETREPRESENTATIONS",
};
export const getSearchResultshObj = () => (dispatch) => {
@@ -39,3 +40,10 @@ export const setDocumentHistory = (documentHistory) => (dispatch) => {
documentHistoryObj: documentHistory,
});
};
export const setRepresentations = (representations) => (dispatch) => {
return dispatch({
type: searchResultsActionTypes.SETREPRESENTATIONS,
representationsObj: representations,
});
};
+6
View File
@@ -5,6 +5,7 @@ const searchResultsInitialState = {
searchDetailsObj: {},
documentDetailsObj: {},
documentHistoryObj: {},
representationsObj: {},
};
export default function reducer(state = searchResultsInitialState, action) {
@@ -29,6 +30,11 @@ export default function reducer(state = searchResultsInitialState, action) {
...state,
documentHistoryObj: action.documentHistoryObj,
};
case searchResultsActionTypes.SETREPRESENTATIONS:
return {
...state,
representationsObj: action.representationsObj,
};
default:
return state;
}