From 87c1ab5796f067f1d58be69ea027afb4c3871150 Mon Sep 17 00:00:00 2001 From: mazur Date: Tue, 24 Dec 2024 12:49:25 +0200 Subject: [PATCH] Use ProductionLocationDetails in the SearchByOsIdSuccessResult --- .../Contribute/SearchByOsIdSuccessResult.jsx | 45 ++++++++++--------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/src/react/src/components/Contribute/SearchByOsIdSuccessResult.jsx b/src/react/src/components/Contribute/SearchByOsIdSuccessResult.jsx index d5bd77560..e11a9f199 100644 --- a/src/react/src/components/Contribute/SearchByOsIdSuccessResult.jsx +++ b/src/react/src/components/Contribute/SearchByOsIdSuccessResult.jsx @@ -2,9 +2,10 @@ import React from 'react'; import { string, object, func, arrayOf } from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; -import PreviousOsIdTooltip from './PreviousOsIdTooltip'; +// import PreviousOsIdTooltip from './PreviousOsIdTooltip'; import SearchByOsIdResultActions from './SearchByOsIdResultActions'; import { makeSearchByOsIdResultStyles } from '../../util/styles'; +import ProductionLocationDetails from './ProductionLocationDetails'; const SearchByOsIdSuccessResult = ({ name, @@ -14,16 +15,19 @@ const SearchByOsIdSuccessResult = ({ countryName, handleBackToSearchByNameAddress, classes, -}) => { - const historicalOsIdsNotEmpty = - Array.isArray(historicalOsIds) && historicalOsIds.length > 0; - - return ( - <> - - Is this your production location? - -
+}) => ( + <> + + Is this your production location? + + + {/*
-
- {}} - /> - - ); -}; + */} + {}} + /> + +); SearchByOsIdSuccessResult.defaultProps = { historicalOsIds: [],