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); };