File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,22 @@ const ReportPage: React.FC = () => {
3939 mutateAsync : getPresignedUrl ,
4040 } = useGetPresignedUrl ( ) ;
4141
42+ const getPlaceholder = ( ) => {
43+ switch ( category ) {
44+ case "INFO_ERROR" :
45+ return "CAPS 홈페이지에서 잘못된 정보나 오타를 발견하셨다면 알려주세요." ;
46+ case "ACCOUNT_MANAGEMENT" :
47+ return "회원 정보 수정이나 권한 관련 문의가 있다면 작성해주세요." ;
48+ case "SUGGESTION" :
49+ return "CAPS 홈페이지에 추가되었으면 하는 기능이 있다면 자유롭게 적어주세요." ;
50+ case "USER_REPORT_AND_SECURITY_REPORT" :
51+ return "부적절한 이용 행위 또는 보안 관련 문제가 발견되었다면 상황과 내용을 최대한 자세히 적어주세요." ;
52+ case "ETC" :
53+ default :
54+ return "상세한 내용을 적어주세요." ;
55+ }
56+ } ;
57+
4258 const handleFileChange = ( e : React . ChangeEvent < HTMLInputElement > ) => {
4359 if ( e . target . files ) {
4460 setSelectedFiles ( Array . from ( e . target . files ) ) ;
@@ -200,7 +216,7 @@ const ReportPage: React.FC = () => {
200216 value = { content }
201217 onChange = { ( e ) => setContent ( e . target . value ) }
202218 className = "w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 h-40 resize-none"
203- placeholder = "상세한 내용을 적어주세요."
219+ placeholder = { getPlaceholder ( ) }
204220 />
205221 </ div >
206222
You can’t perform that action at this time.
0 commit comments