Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat: add margin to select seats
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Mar 4, 2024
1 parent 778e715 commit 04a26ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/MovieSeatSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Index: React.FC = () => {
<div className='text-center'>
<h1>Select Seat</h1>
</div>
<div className={styles.seatContainer}>{renderSeats()}</div>
<div className={`${styles.seatContainer} mt-3`}>{renderSeats()}</div>
<Form>
<Form.Group controlId='ticketType'>
<Form.Label>Select Ticket Type:</Form.Label>
Expand All @@ -106,9 +106,10 @@ const Index: React.FC = () => {
</Form.Control>
</Form.Group>
</Form>
<div className={styles.messageContainer}>
<p className={styles.message}>
You have selected <strong>{totalSelectedSeats}</strong> seat(s):{' '}
<div>
<p className='mt-2'>
You have selected <strong>{totalSelectedSeats}</strong>{' '}
{totalSelectedSeats === 1 ? 'seat' : 'seats'}:{' '}
{selectedSeats.map((seat, index) => (
<span key={index}>
{seat.ticketType ? (
Expand Down

0 comments on commit 04a26ad

Please sign in to comment.