diff --git a/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx b/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx index 804d4d6..d215136 100644 --- a/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx +++ b/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx @@ -1,30 +1,48 @@ 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 ( -
-
- -
+
+
+ +

{props.results.perimetrs} м², {props.results.rooms}-х комнатная

-

{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}

-
-
+

{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}

+
+

{props.results.timeToBus} мин

-
+

{props.results.timeToTrain} мин

-
-
+
+
@@ -38,8 +56,8 @@ const CardApartament = function (props) {
-
-
+
+
@@ -54,8 +72,8 @@ const CardApartament = function (props) {
-
-
+
+
@@ -70,26 +88,26 @@ const CardApartament = function (props) {
-
+
{/* TODO: добавить проверку на авторизацию */} - - - -
-
-
+
+

{props.results.price} ₽

-

в месяц

-

{props.results.description}

-

{props.results.dateCreate}

+

в месяц

+

{props.results.description}

+

{props.results.dateCreate}

); diff --git a/pairent_frontend_react/src/components/Favorites/Favorites.jsx b/pairent_frontend_react/src/components/Favorites/Favorites.jsx index 7107488..6b40f60 100644 --- a/pairent_frontend_react/src/components/Favorites/Favorites.jsx +++ b/pairent_frontend_react/src/components/Favorites/Favorites.jsx @@ -21,7 +21,7 @@ const Favorites = function () { {apartaments.map((apartament, index) => <> -
+
)} diff --git a/pairent_frontend_react/src/components/Footer/Footer.jsx b/pairent_frontend_react/src/components/Footer/Footer.jsx index b3f47a8..ec18015 100644 --- a/pairent_frontend_react/src/components/Footer/Footer.jsx +++ b/pairent_frontend_react/src/components/Footer/Footer.jsx @@ -4,7 +4,7 @@ import './styles/Footer.css'; const Footer = function () { return ( ); }