Skip to content

Commit

Permalink
not verified opens in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermankhan committed Apr 10, 2022
1 parent f168f47 commit e9be3f9
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions components/Property.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ const Property = ({ property, isRental }) => {
return (
//after clicking on a property we route to the specific property page
//for new tab <a target="_blank" rel="noreferrer"></a>
<Link href={`/property/${zpid}/`} passHref>
<>

{/* NOTE: Brute forced the styling for the card margins to give spacing between each property, will probably need to adjust this in index.js and search.js */}
<Flex
flexWrap="wrap"
Expand All @@ -115,6 +116,7 @@ const Property = ({ property, isRental }) => {
marginRight="26px"
marginBottom="25px"
>
<Link href={`/property/${zpid}/`} passHref>
<Box
backgroundImage={imgSrc ? imgSrc : DefaultImage}
backgroundPosition="center"
Expand Down Expand Up @@ -151,6 +153,7 @@ const Property = ({ property, isRental }) => {
*/}
</Flex>
</Box>
</Link>
<Box w="full" paddingLeft="5" paddingRight="5" paddingBottom="5">
<Flex
paddingTop="2"
Expand Down Expand Up @@ -190,14 +193,15 @@ const Property = ({ property, isRental }) => {
<Text></Text>
) : (
<Text marginLeft="2">
<Link href="/notregistered" passHref>
<a target="_blank" href="notregistered" rel="noopener noreferrer">
<MdInfoOutline />
</Link>
</a>
</Text>
)}
</Box>
</Flex>
</Flex>
<Link href={`/property/${zpid}/`} passHref>
<Flex
alignItems="center"
p="1"
Expand Down Expand Up @@ -234,14 +238,17 @@ const Property = ({ property, isRental }) => {
</Flex>
</Box>
</Flex>
<Text fontSize="md" color="gray.700">
{residentalName} {streetName}
<br />
{city}, {stateAndZip}
</Text>
</Link>
<Link href={`/property/${zpid}/`} passHref>
<Text fontSize="md" color="gray.700">
{residentalName} {streetName}
<br />
{city}, {stateAndZip}
</Text>
</Link>
</Box>
</Flex>
</Link>
</>
);
};

Expand Down

0 comments on commit e9be3f9

Please sign in to comment.