Skip to content

Commit

Permalink
Use ProductionLocationDetails in the SearchByOsIdSuccessResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mazursasha1990 committed Dec 24, 2024
1 parent 452bf52 commit 87c1ab5
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions src/react/src/components/Contribute/SearchByOsIdSuccessResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -14,16 +15,19 @@ const SearchByOsIdSuccessResult = ({
countryName,
handleBackToSearchByNameAddress,
classes,
}) => {
const historicalOsIdsNotEmpty =
Array.isArray(historicalOsIds) && historicalOsIds.length > 0;

return (
<>
<Typography component="h2" className={classes.resultTitleStyles}>
Is this your production location?
</Typography>
<div className={classes.locationDetailsStyles}>
}) => (
<>
<Typography component="h2" className={classes.resultTitleStyles}>
Is this your production location?
</Typography>
<ProductionLocationDetails
osId={osId}
name={name}
address={address}
countryName={countryName}
historicalOsIds={historicalOsIds}
/>
{/* <div className={classes.locationDetailsStyles}>
<Typography
component="h3"
className={classes.locationNameStyles}
Expand Down Expand Up @@ -55,16 +59,15 @@ const SearchByOsIdSuccessResult = ({
{countryName}
</Typography>
</div>
</div>
<SearchByOsIdResultActions
defaultButtonLabel="No, search by name and address"
defaultButtonAction={handleBackToSearchByNameAddress}
secondaryButtonLabel="Yes, add data and claim"
secondaryButtonAction={() => {}}
/>
</>
);
};
</div> */}
<SearchByOsIdResultActions
defaultButtonLabel="No, search by name and address"
defaultButtonAction={handleBackToSearchByNameAddress}
secondaryButtonLabel="Yes, add data and claim"
secondaryButtonAction={() => {}}
/>
</>
);

SearchByOsIdSuccessResult.defaultProps = {
historicalOsIds: [],
Expand Down

0 comments on commit 87c1ab5

Please sign in to comment.