From 579f80a602a595b771f783e68f1a78a5d1027925 Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Sun, 9 Jun 2024 20:42:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=98=88=EC=95=BD=20=EB=B6=88=EA=B0=80?= =?UTF-8?q?=20=ED=95=A0=20=EB=95=8C,=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meetingRoom/MeetingRoomIndex.tsx | 63 +++++++++++-------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/src/components/reservation/meetingRoom/MeetingRoomIndex.tsx b/src/components/reservation/meetingRoom/MeetingRoomIndex.tsx index d1a3e70..14b6b6b 100644 --- a/src/components/reservation/meetingRoom/MeetingRoomIndex.tsx +++ b/src/components/reservation/meetingRoom/MeetingRoomIndex.tsx @@ -282,8 +282,11 @@ const MeetingRoomIndex: React.FC = () => {
-
바로예약
-
가능
+ {meetingRooms.length === 0 ? ( + <>
바로예약
불가능
+ ) : ( + <>
바로예약
가능
+ )}
총 {meetingRooms.length}개의 공간
@@ -356,34 +359,40 @@ const MeetingRoomIndex: React.FC = () => {
-
- {meetingRooms.map((room) => ( -
handleRoomClick(room.meetingRoomId)}> -
- {room.meetingRoomName} -
-
-
- {room.meetingRoomName} -
-
- floor -
- {room.meetingRoomFloor < 0 ? `B${Math.abs(room.meetingRoomFloor)}` : `${room.meetingRoomFloor}`}층 + {meetingRooms.length === 0 ? ( +
+ 조건에 맞는 미팅룸이 없습니다. +
+ ) : ( +
+ {meetingRooms.map((room) => ( +
handleRoomClick(room.meetingRoomId)}> +
+ {room.meetingRoomName} +
+
+
+ {room.meetingRoomName} +
+
+ floor +
+ {room.meetingRoomFloor < 0 ? `B${Math.abs(room.meetingRoomFloor)}` : `${room.meetingRoomFloor}`}층 +
+ capacity +
1~{room.meetingRoomCapacity}명
+
- capacity -
1~{room.meetingRoomCapacity}명
-
+ ))}
- ))} -
+ )}
{startTime && endTime && (