Skip to content

Commit

Permalink
chore: 파일 형식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Aug 1, 2024
1 parent da6628b commit 77b87e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/ApplyPage/components/FileInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface FileInputProps {
}

const LIMIT_SIZE = 1024 ** 2 * 50; // 50MB
const ACCEPTED_FORMATS = '.pdf, .pptx';
const ACCEPTED_FORMATS = '.pdf';

const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputProps) => {
const inputRef = useRef<HTMLInputElement>(null);
Expand Down Expand Up @@ -151,7 +151,7 @@ const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputPr
{(uploadPercent !== -1 || !defaultFileName) && (
<span className={fileNameVar[fileName === '' ? 'default' : 'selected']}>
{uploadPercent < 0 && fileName === ''
? '50mb 이하 | pdf, pptx'
? '50mb 이하 | pdf'
: isFileUploading
? `업로드 중... ${uploadPercent}/100% 완료`
: isFileSending
Expand All @@ -161,7 +161,7 @@ const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputPr
)}
{uploadPercent === -1 && defaultFileName && (
<span className={fileNameVar[fileName === 'delete-file' ? 'default' : 'selected']}>
{fileName === 'delete-file' ? '50mb 이하 | pdf, pptx' : defaultFileName}
{fileName === 'delete-file' ? '50mb 이하 | pdf' : defaultFileName}
</span>
)}
</>
Expand Down

0 comments on commit 77b87e2

Please sign in to comment.