updated cookie manger added cookie policy
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user