Skip to content

Commit

Permalink
set sort and mark on map2
Browse files Browse the repository at this point in the history
  • Loading branch information
hanimohammad committed Nov 16, 2024
1 parent b6685d4 commit 1dc278a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/Offer/Offer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -192,17 +187,15 @@ export const Offer: React.FC<OfferProps> = ({
</p>
</div>
</div>
<ReviewList
reviews={reviews}
containerMix="offer__reviews"
/>
<ReviewList reviews={reviews} containerMix="offer__reviews" />
</div>
</div>
<section className="offer__map map">
<Map
offers={[...offers]}
selectedPoint={offers[1]}
currentCity={currentCity}
activeOffer={offers[1].id}
/>
</section>
</section>
Expand Down

0 comments on commit 1dc278a

Please sign in to comment.