From 651847e49bcc1318fd9b24e9e3f93ba260d64ee2 Mon Sep 17 00:00:00 2001 From: lydiacho <81505421+lydiacho@users.noreply.github.com> Date: Thu, 8 Aug 2024 00:03:32 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20=ED=8C=8C=ED=8A=B8=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20(#358)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 연장 파트 필터링 * fix: 디자인 제외 --- src/views/ApplyPage/components/PartSection/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/ApplyPage/components/PartSection/index.tsx b/src/views/ApplyPage/components/PartSection/index.tsx index c63f6c58..fe655cfb 100644 --- a/src/views/ApplyPage/components/PartSection/index.tsx +++ b/src/views/ApplyPage/components/PartSection/index.tsx @@ -33,6 +33,8 @@ const PartSection = ({ const { getValues } = useFormContext(); const partOptions = questionTypes?.sort((a, b) => a.id - b.id).map(({ typeKr }) => typeKr); + // 지원 연장 파트 + const filteredPartOptions = partOptions?.filter((part) => part === '안드로이드'); const selectedPart: string = getValues('part'); const filteredQuestions = questions?.find((item) => item.part === selectedPart)?.questions; @@ -52,7 +54,7 @@ const PartSection = ({ label="지원파트" name="part" placeholder="지원하고 싶은 파트를 선택해주세요." - options={partOptions || []} + options={filteredPartOptions || []} size="lg" required disabled={isReview}