From 1dc278a8a139af7328129730b5c3703a73b40879 Mon Sep 17 00:00:00 2001 From: "hani.mohammad" Date: Sat, 16 Nov 2024 18:34:02 +0300 Subject: [PATCH] set sort and mark on map2 --- src/components/Offer/Offer.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/components/Offer/Offer.tsx b/src/components/Offer/Offer.tsx index 7bcf49a..efc208a 100644 --- a/src/components/Offer/Offer.tsx +++ b/src/components/Offer/Offer.tsx @@ -5,12 +5,7 @@ import { ReviewList } from '../Reviews/ReviewList'; //import { offers } from '../../mock/offers'; import { OtherPlacesNearby } from '../OtherPlacesNearby/OtherPlacesNearby'; import Map from '../Map/Map'; -import { - AppRoute, - UserReview, - OfferObject, - City, -} from '../../types/types'; +import { AppRoute, UserReview, OfferObject, City } from '../../types/types'; type OfferProps = { reviews: UserReview[]; offers: OfferObject[]; @@ -192,10 +187,7 @@ export const Offer: React.FC = ({

- +
@@ -203,6 +195,7 @@ export const Offer: React.FC = ({ offers={[...offers]} selectedPoint={offers[1]} currentCity={currentCity} + activeOffer={offers[1].id} />