@@ -9,23 +9,27 @@ const ReserveList = ({ reserveList }: BerReserveListProps) => {
9
9
return (
10
10
< Container >
11
11
{ reserveList . map ( ( reserve ) => (
12
- < BerReserveListItem >
13
- < BerReserveInformationText >
14
- 베르 { reserve . berNumber } 실 예약
15
- </ BerReserveInformationText >
16
- < BerReserveInformationText >
17
- · { reserve . user . name } 님
18
- </ BerReserveInformationText >
19
- < BerReserveInformationText >
20
- | { reserve . reservationUsersName }
21
- </ BerReserveInformationText >
22
- { isBerReserverSameAsUser ( reserve . user . id ) && (
23
- < ReserveCancelButton
24
- onClick = { ( ) => handleBerReserveDeleteClick ( reserve . id ) }
25
- >
26
- 예약 취소
27
- </ ReserveCancelButton >
28
- ) }
12
+ < BerReserveListItem key = { reserve . id } >
13
+ < BerReserveInformationContainer >
14
+ < BerReserveInformationText >
15
+ 베르 { reserve . berNumber } 실 예약
16
+ </ BerReserveInformationText >
17
+ < BerReserveInformationBox >
18
+ < BerReserveInformationText >
19
+ < UserNameText > { reserve . user . name } </ UserNameText > 님 |
20
+ </ BerReserveInformationText >
21
+ < BerReserveInformationText >
22
+ < UserListText > { reserve . reservationUsersName } </ UserListText >
23
+ </ BerReserveInformationText >
24
+ { isBerReserverSameAsUser ( reserve . user . id ) && (
25
+ < ReserveCancelButton
26
+ onClick = { ( ) => handleBerReserveDeleteClick ( reserve . id ) }
27
+ >
28
+ 예약 취소
29
+ </ ReserveCancelButton >
30
+ ) }
31
+ </ BerReserveInformationBox >
32
+ </ BerReserveInformationContainer >
29
33
</ BerReserveListItem >
30
34
) ) }
31
35
</ Container >
@@ -45,13 +49,33 @@ const BerReserveListItem = styled.div`
45
49
padding: 20px 30px;
46
50
background-color: ${ theme . white } ;
47
51
display: flex;
52
+ flex-direction: column;
53
+ gap: 4px;
54
+ ` ;
55
+
56
+ const BerReserveInformationContainer = styled . div `
57
+ ${ flex . COLUMN_FLEX } ;
48
58
gap: 4px;
49
59
` ;
50
60
51
61
const BerReserveInformationText = styled . div `
52
62
${ font . p2 } ;
53
63
` ;
54
64
65
+ const BerReserveInformationBox = styled . div `
66
+ ${ flex . FLEX } ;
67
+ ` ;
68
+
69
+ const UserNameText = styled . span `
70
+ ${ font . H5 } ;
71
+ font-weight: 600;
72
+ ` ;
73
+
74
+ const UserListText = styled . div `
75
+ width: 100%;
76
+ margin-left: 1.5%;
77
+ ` ;
78
+
55
79
const ReserveCancelButton = styled . button `
56
80
margin-left: auto;
57
81
width: fit-content;
0 commit comments