build fix and updated myportal layout

This commit is contained in:
2022-04-07 11:47:25 +01:00
parent d63d87aa3e
commit bc41924c85
35 changed files with 1308 additions and 58 deletions
+8
View File
@@ -6,6 +6,7 @@ export const searchResultsActionTypes = {
SETDOCUMENTDETAILS: "SETDOCUMENTDETAILS",
SETDOCUMENTHISTORY: "SETDOCUMENTHISTORY",
SETREPRESENTATIONS: "SETREPRESENTATIONS",
SETDNSCOORDS: "SETDNSCOORDS",
};
export const getSearchResultshObj = () => (dispatch) => {
@@ -47,3 +48,10 @@ export const setRepresentations = (representations) => (dispatch) => {
representationsObj: representations,
});
};
export const setDNSCoords = (dnsCoords) => (dispatch) => {
return dispatch({
type: searchResultsActionTypes.SETDNSCOORDS,
dnsCoordsObj: dnsCoords,
});
};
+6
View File
@@ -5,6 +5,7 @@ const searchResultsInitialState = {
searchDetailsObj: {},
documentDetailsObj: {},
representationsObj: {},
dnsCoordsObj: {},
};
export default function reducer(state = searchResultsInitialState, action) {
@@ -30,6 +31,11 @@ export default function reducer(state = searchResultsInitialState, action) {
...state,
representationsObj: action.representationsObj,
};
case searchResultsActionTypes.SETDNSCOORDS:
return {
...state,
dnsCoordsObj: action.dnsCoordsObj,
};
default:
return state;
}