add type annotations

This commit is contained in:
b1ek 2023-05-04 13:52:30 +10:00
parent f30c2bc1de
commit 8606633223
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 19 additions and 1 deletions

View File

@ -1,11 +1,29 @@
import React from 'react';
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) {
return (
<section class="apartmentSection">
<div class="apartmentSectionLeft">
<img src="./images/apartment.png"></img>
<img src="/images/apartment.png"></img>
<div class="characteristics">
<h3>{props.results.perimetrs} м², {props.results.rooms}-х комнатная</h3>
<p class="address">{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</p>