add links to full apartment page

This commit is contained in:
b1ek 2023-05-17 14:11:30 +10:00
parent b3175682cf
commit d19364c38d
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 11 additions and 6 deletions

View File

@ -147,16 +147,21 @@ const CardApartament = function (props) {
return ( return (
<ApartmentSection> <ApartmentSection>
<ApartmentSectionLeft> <ApartmentSectionLeft>
<ApartmentIcon src="/images/apartment.png"></ApartmentIcon> <a href={'/apartment/' + props.results.id}>
<ApartmentIcon src="/images/apartment.png"></ApartmentIcon>
</a>
<Characteristics> <Characteristics>
<h3>{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms} <a href={'/apartment/' + props.results.id}>
<h3>{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms}
{props.results.rooms == 0 ? 'Гостинка' : {props.results.rooms == 0 ? 'Гостинка' :
(props.results.rooms > 1 ? "-х комнатная" : " комнатная") (props.results.rooms > 1 ? "-х комнатная" : " комнатная")
} }
</h3> </h3>
<Address>{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</Address> <Address>{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</Address>
</a>
<TransportSection> <TransportSection>
<TransportIcon> <TransportIcon>
<SVGIcon src='/images/icons/bus.svg' width={20} height={21} /> <SVGIcon src='/images/icons/bus.svg' width={20} height={21} />