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,8 +147,11 @@ const CardApartament = function (props) {
return ( return (
<ApartmentSection> <ApartmentSection>
<ApartmentSectionLeft> <ApartmentSectionLeft>
<a href={'/apartment/' + props.results.id}>
<ApartmentIcon src="/images/apartment.png"></ApartmentIcon> <ApartmentIcon src="/images/apartment.png"></ApartmentIcon>
</a>
<Characteristics> <Characteristics>
<a href={'/apartment/' + props.results.id}>
<h3>{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms} <h3>{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms}
{props.results.rooms == 0 ? 'Гостинка' : {props.results.rooms == 0 ? 'Гостинка' :
@ -157,6 +160,8 @@ const CardApartament = function (props) {
</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} />