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}