Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmman committed Dec 3, 2024
1 parent 79b5664 commit ebc593a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/Pages/login-page/login-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ export function LoginPage(): React.JSX.Element {
name="email"
placeholder="Email"
onChange={(event) =>
setLoginInfo({ ...loginInfo, email: event.target.value })
}
setLoginInfo({ ...loginInfo, email: event.target.value })}
required
/>
</div>
Expand All @@ -63,8 +62,7 @@ export function LoginPage(): React.JSX.Element {
setLoginInfo({
...loginInfo,
password: event.target.value,
})
}
})}
required
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/Pages/main-page/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function MainPage(): React.JSX.Element {
selectedPoint={
activeOffer
? {
location: activeOffer?.location,
id: activeOffer?.id,
}
location: activeOffer?.location,
id: activeOffer?.id,
}
: undefined
}
isOnMainPage
Expand Down
2 changes: 1 addition & 1 deletion src/components/offer/offer-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function OfferCardImpl({
onMouseLeave={handleMouseLeave}
className={cn(
'place-card',
{ cities__card: isOnMainPage },
{ 'cities__card': isOnMainPage },
{ 'near-places__card': !isOnMainPage },
)}
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/reviews/review-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ export function ReviewForm(): React.JSX.Element {
value={review?.comment || ''}
onChange={onCommentChange}
disabled={reviewPostingStatus === ReviewStatus.Pending}
></textarea>
>
</textarea>
<div className="reviews__button-wrapper">
<p className="reviews__help">
To submit review please make sure to set{' '}
Expand Down

0 comments on commit ebc593a

Please sign in to comment.