build fix and updated myportal layout
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user