add type annotations
This commit is contained in:
parent
f30c2bc1de
commit
8606633223
|
@ -1,11 +1,29 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './styles/CardApartament.css';
|
import './styles/CardApartament.css';
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param {{
|
||||||
|
* results: {
|
||||||
|
* perimetrs: string,
|
||||||
|
* rooms: string,
|
||||||
|
* address: string,
|
||||||
|
* floor: string,
|
||||||
|
* floorHouse: string,
|
||||||
|
* timeToBus: string,
|
||||||
|
* timeToTrain: string,
|
||||||
|
* price: string,
|
||||||
|
* description: string,
|
||||||
|
* dateCreate: string
|
||||||
|
* }
|
||||||
|
* }} props
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
const CardApartament = function (props) {
|
const CardApartament = function (props) {
|
||||||
return (
|
return (
|
||||||
<section class="apartmentSection">
|
<section class="apartmentSection">
|
||||||
<div class="apartmentSectionLeft">
|
<div class="apartmentSectionLeft">
|
||||||
<img src="./images/apartment.png"></img>
|
<img src="/images/apartment.png"></img>
|
||||||
<div class="characteristics">
|
<div class="characteristics">
|
||||||
<h3>{props.results.perimetrs} м², {props.results.rooms}-х комнатная</h3>
|
<h3>{props.results.perimetrs} м², {props.results.rooms}-х комнатная</h3>
|
||||||
<p class="address">{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</p>
|
<p class="address">{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</p>
|
||||||
|
|
Loading…
Reference in New Issue