Skip to content

Commit

Permalink
fixes reserve comonent height
Browse files Browse the repository at this point in the history
  • Loading branch information
jitunayak committed Jun 4, 2024
1 parent ec89798 commit b93cbca
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/pages/Room/Reserve.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ const Reserve: React.FC<IProps> = ({ room }) => {
? 'Reserving...'
: `Book ${moment(reserveDates.checkOut).diff(
moment(reserveDates.checkIn),
'days'
'days',
)} ${
moment(reserveDates.checkOut).diff(
moment(reserveDates.checkIn),
'days'
'days',
) > 1
? 'nights'
: 'night'
Expand All @@ -317,7 +317,7 @@ const Reserve: React.FC<IProps> = ({ room }) => {
{room.price.discountedPrice} x
{moment(reserveDates.checkOut).diff(
moment(reserveDates.checkIn),
'days'
'days',
)}{' '}
nights{' '}
</span>
Expand All @@ -327,8 +327,8 @@ const Reserve: React.FC<IProps> = ({ room }) => {
room.price.discountedPrice *
moment(reserveDates.checkOut).diff(
moment(reserveDates.checkIn),
'days'
)
'days',
),
).toLocaleString()}
</span>
</GuestRow>
Expand Down Expand Up @@ -368,7 +368,7 @@ const Reserve: React.FC<IProps> = ({ room }) => {
room.price.discountedPrice *
moment(reserveDates.checkOut).diff(
moment(reserveDates.checkIn),
'days'
'days',
) +
room.price.serviceCharge
).toLocaleString()}`}
Expand Down Expand Up @@ -404,6 +404,7 @@ const BookingContainer = styled('div', {
border: '1px solid #eee',
borderRadius: '.6rem',
boxShadow: '$m',
height: 'fit-content',
marginTop: '2rem',
padding: '2rem',
width: 'fit-content',
Expand Down

0 comments on commit b93cbca

Please sign in to comment.