add links to full apartment page
This commit is contained in:
parent
b3175682cf
commit
d19364c38d
|
@ -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} />
|
||||||
|
|
Loading…
Reference in New Issue