From 70f3150d3c523e35ff890ec65fd28edc9bc446ab Mon Sep 17 00:00:00 2001 From: lydiacho Date: Tue, 30 Jul 2024 13:52:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B3=B5=ED=86=B5=20=EC=84=B9=EC=85=98?= =?UTF-8?q?=EC=97=90=EB=8F=84=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ApplyPage/components/CommonSection/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/ApplyPage/components/CommonSection/index.tsx b/src/views/ApplyPage/components/CommonSection/index.tsx index 6816537d..5dce73d3 100644 --- a/src/views/ApplyPage/components/CommonSection/index.tsx +++ b/src/views/ApplyPage/components/CommonSection/index.tsx @@ -25,7 +25,7 @@ const CommonSection = ({ isReview, refCallback, questions, commonQuestionsDraft return (

공통 질문

- {questions?.map(({ urls, value, id, charLimit, isFile }) => { + {questions?.map(({ urls, value, id, charLimit, isFile, placeholder, optional }) => { const draftItem = commonQuestionsById?.[id]; const defaultValue = draftItem ? draftItem.answer.answer : ''; const defaultFile = { id, file: draftItem?.answer.file, fileName: draftItem?.answer.fileName }; @@ -39,9 +39,10 @@ const CommonSection = ({ isReview, refCallback, questions, commonQuestionsDraft defaultValue={defaultValue} maxCount={charLimit} placeholder={ - isFile + placeholder || + (isFile ? '링크로 제출할 경우, 이곳에 작성해주세요. (파일로 제출한 경우에는 ‘파일 제출’이라고 기재 후 제출해주세요.)' - : '' + : '') } extraInput={ isFile ? ( @@ -50,7 +51,7 @@ const CommonSection = ({ isReview, refCallback, questions, commonQuestionsDraft ) : null } - required + required={!optional} disabled={isReview}> {value}