Skip to content

Commit

Permalink
Update Main1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nawwar14 committed Oct 6, 2024
1 parent f03b193 commit 8c765bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const MainPage : JSX.Element = (CardProps: cardProperties[]) => (
<div className="cities__places-container container">
<section className="cities__places places">
<h2 className="visually-hidden">Places</h2>
<b className="places__found">{CardProps.CardProps.mainPageCardInfo[0].NumberOfPlaces} places to stay in Amsterdam</b>
<b className="places__found">{CardProps[0].NumberOfPlaces} places to stay in Amsterdam</b>
<form className="places__sorting" action="#" method="get">
<span className="places__sorting-caption">Sort by</span>
<span className="places__sorting-type" tabIndex={0}>
Expand All @@ -92,10 +92,10 @@ export const MainPage : JSX.Element = (CardProps: cardProperties[]) => (
</ul>
</form>
<div className="cities__places-list places__list tabs__content">
<Card {...CardProps.CardProps.mainPageCardInfo[0]}/>
<Card {...CardProps.CardProps.mainPageCardInfo[1]}/>
<Card {...CardProps.CardProps.mainPageCardInfo[2]}/>
<Card {...CardProps.CardProps.mainPageCardInfo[3]}/>
<Card {...CardProps[0]}/>
<Card {...CardProps[1]}/>
<Card {...CardProps[2]}/>
<Card {...CardProps[3]}/>
</div>
</section>
<div className="cities__right-section">
Expand Down

0 comments on commit 8c765bf

Please sign in to comment.