From c952afc0f6fa47ee916eccaf45298be3a6223895 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Fri, 29 Jul 2022 16:56:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=97=85?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20preview=20size=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cmm/file-ctl/FileForm.jsx | 7 ++++++- src/views/cmm/file-ctl/ImageFileInputForms.jsx | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/cmm/file-ctl/FileForm.jsx b/src/views/cmm/file-ctl/FileForm.jsx index 3c82d50..59f9c64 100644 --- a/src/views/cmm/file-ctl/FileForm.jsx +++ b/src/views/cmm/file-ctl/FileForm.jsx @@ -15,7 +15,12 @@ const FileForm = ({ const file = e.target.files[0]; if (file.type.includes('image')) { alert.show( - {`${file.name}`} + {`${file.name}`} ); } handleChangeFile(file); diff --git a/src/views/cmm/file-ctl/ImageFileInputForms.jsx b/src/views/cmm/file-ctl/ImageFileInputForms.jsx index ee07498..963a6ab 100644 --- a/src/views/cmm/file-ctl/ImageFileInputForms.jsx +++ b/src/views/cmm/file-ctl/ImageFileInputForms.jsx @@ -7,7 +7,9 @@ const ImageFileInputForms = ({ fieldName, index, labelName, selectedFile, fileNa const onChangeFile = (e) => { const file = e.target.files[0]; if (file.type.includes('image')) { - alert.show({`${file.name}`}); + alert.show( + {`${file.name}`} + ); } handleChangeFile(e); };