+
diff --git a/src/pages/main-screen/main-screen.tsx b/src/pages/main-screen/main-screen.tsx
index b2d2ff7..22e0a69 100644
--- a/src/pages/main-screen/main-screen.tsx
+++ b/src/pages/main-screen/main-screen.tsx
@@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import Map from '../../components/map/map';
import { POINTS } from '../../mocks/points';
import { AMSTERDAM } from '../../mocks/cities';
+import { typeOfCardList } from '../../const';
type MainScreenProps = {
placesCount: number;
@@ -102,7 +103,7 @@ function MainScreen({placesCount, offers}: MainScreenProps): JSX.Element {
Top rated first
-
+
diff --git a/src/pages/offer-screen/offer-screen.tsx b/src/pages/offer-screen/offer-screen.tsx
index 6809959..ab72538 100644
--- a/src/pages/offer-screen/offer-screen.tsx
+++ b/src/pages/offer-screen/offer-screen.tsx
@@ -1,7 +1,18 @@
import { Link } from 'react-router-dom';
-import CommentForm from '../../components/comment-form/comment-form';
+import ReviewsList from '../../components/reviews-list/reviews-list';
+import { OFFERS } from '../../mocks/offers';
+import { Offer } from '../../types/offer';
+import { AMSTERDAM } from '../../mocks/cities';
+import { POINTS } from '../../mocks/points';
+import Map from '../../components/map/map';
+import OfferList from '../../components/offer-list/offer-list';
+import { typeOfCardList } from '../../const';
-function OfferScreen(): JSX.Element {
+type OfferScreenProps = {
+ offer: Offer;
+}
+
+function OfferScreen({offer}: OfferScreenProps): JSX.Element {
return (
@@ -61,12 +72,14 @@ function OfferScreen(): JSX.Element {
-
- Premium
-
+ {offer.isPremium ? (
+
+ Premium
+
+ ) : null}
- Beautiful & luxurious studio at great location
+ {offer.title}
-
+
Rating
- 4.8
+ {offer.rating}
- Apartment
+ {offer.type}
3 Bedrooms
@@ -94,7 +107,7 @@ function OfferScreen(): JSX.Element {
- €120
+ €{offer.price} night
@@ -149,146 +162,19 @@ function OfferScreen(): JSX.Element {
A quiet cozy and picturesque that hides behind a a river by the unique lightness of Amsterdam. The building is green and from 18th century.
-
- An independent House, strategically located between Rembrand Square and National Opera, but where the bustle of the city comes to rest in this alley flowery and colorful.
-
-
-
Reviews · 1
-
-
-
-
-
-
-
- Max
-
-
-
-
-
-
- Rating
-
-
-
- A quiet cozy and picturesque that hides behind a a river by the unique lightness of Amsterdam. The building is green and from 18th century.
-