Skip to content

Commit

Permalink
Merge pull request #18 from Nawwar14/module9-task3
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Dec 25, 2024
2 parents a323ca0 + 668c202 commit a9e76f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Offer/Offer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ export default function Offer () {
</section>
</section>
<div className="container">
<OfferList offers={nearbyOffers} cardcssname={CardCssNameList.citiesList} />
<section className="near-places places">
<h2 className="near-places__title">
Other places in the neighbourhood
</h2>
<OfferList offers={nearbyOffers} cardcssname={CardCssNameList.citiesList} />
</section>
</div>
<div>
<h2 className="reviews__title">Reviews</h2>
Expand Down
1 change: 1 addition & 0 deletions src/components/tests/app-router.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@ describe('Application Routing', () => {
mockHistory.push('/offer/a01640c0-fed5-4d3f-99b3-deb2391269fc');
render(withStoreComponent);
expect(screen.getByText(/Wood and stone place/i)).toBeInTheDocument();
expect(screen.getByText(/Other places in the neighbourhood/i)).toBeInTheDocument();
});
});

0 comments on commit a9e76f9

Please sign in to comment.