From fb88defb36f461477b6be82bfce76bac1188146a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EB=82=99=ED=83=80/=EC=86=A1=EC=9E=AC=EC=84=9D?=
<106071687+Largopie@users.noreply.github.com>
Date: Tue, 15 Oct 2024 23:46:31 +0900
Subject: [PATCH] =?UTF-8?q?[FE]=20=EB=82=A0=EC=A7=9C=EB=A7=8C=20=EC=9E=85?=
=?UTF-8?q?=EB=A0=A5=20=EC=8B=9C,=20=EC=95=BD=EC=86=8D=20=EC=B6=94?=
=?UTF-8?q?=EC=B2=9C=20=ED=95=84=ED=84=B0=EB=A7=81=20=EA=B8=B0=EB=8A=A5=20?=
=?UTF-8?q?=EC=A0=9C=EA=B1=B0=20(#400)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
refactor: 시간 선택 시에만 추천 필터링 기능 동작되도록 수정
---
.../components/MeetingTimeRecommends.tsx | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/frontend/src/pages/MeetingRecommendPage/components/MeetingTimeRecommends.tsx b/frontend/src/pages/MeetingRecommendPage/components/MeetingTimeRecommends.tsx
index 9bdfd022..055c3f8f 100644
--- a/frontend/src/pages/MeetingRecommendPage/components/MeetingTimeRecommends.tsx
+++ b/frontend/src/pages/MeetingRecommendPage/components/MeetingTimeRecommends.tsx
@@ -45,14 +45,16 @@ export default function MeetingTimeRecommends({ uuid, attendeeNames }: MeetingRe
))}
원하는 참여인원을 선택해 보세요 :)
- handleChangeRecommendType(e.target.value)}
- options={[
- { value: 'earliest', label: '빠르게 만나고 싶어요' },
- { value: 'longTerm', label: '길게 만나고 싶어요' },
- ]}
- />
+ {meetingRecommendResponse && meetingRecommendResponse.type === 'DATETIME' && (
+ handleChangeRecommendType(e.target.value)}
+ options={[
+ { value: 'earliest', label: '빠르게 만나고 싶어요' },
+ { value: 'longTerm', label: '길게 만나고 싶어요' },
+ ]}
+ />
+ )}
{meetingRecommendResponse &&
meetingRecommendResponse.recommendedSchedules.map((recommendInfo, index) =>
meetingRecommendResponse.type === 'DATETIME' ? (