Skip to content

Commit

Permalink
style : 속성의 길이에 따라 maxSize와 accept의 순서 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
redzzzi committed Jun 4, 2024
1 parent 641f74a commit fabfd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Uploader/FileUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const FileUploader = ({
const { getRootProps, getInputProps, isDragActive } = useDropzone({
onDrop,
onDropRejected,
maxSize: MAX_FILE_SIZE,
accept: {
'image/jpg': ['.jpg', '.jpeg', '.png', '.gif', '.svg', '.bmp', '.ico'],
'video/mp4': ['.mp4'],
Expand All @@ -63,7 +64,6 @@ const FileUploader = ({
'application/x-7z-compressed': ['.7z'],
'application/vnd.hancom.hwpx': ['.hwp', '.hwpx'],
},
maxSize: MAX_FILE_SIZE,
});

const handleDeleteUploadFileClick = (fileName: string, fileId?: number) => {
Expand Down

0 comments on commit fabfd61

Please sign in to comment.