diff --git a/src/views/biz/admin/judge/JudgeDataDetailForm.jsx b/src/views/biz/admin/judge/JudgeDataDetailForm.jsx index 95e7c34..85e03cf 100644 --- a/src/views/biz/admin/judge/JudgeDataDetailForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataDetailForm.jsx @@ -10,7 +10,7 @@ import Button from '@mui/material/Button'; import { Delete, List } from '@mui/icons-material'; import { judgeFileDownload } from 'apis/judge'; -import ImageFileTextForm from '../../../cmm/file-ctl/ImageFileTextForm'; +import ImageFileViewForm from '../../../cmm/file-ctl/ImageFileViewForm'; const ModifyJudgeDataForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSave, onModify }) => { const showAlert = useAlert(); @@ -175,7 +175,7 @@ const ModifyJudgeDataForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav {_.range(1, 5, 1).map((idx) => ( - {_.range(1, 5, 1).map((idx) => ( - {_.range(1, 9, 1).map((idx) => ( - { @@ -360,7 +360,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav {_.range(1, 5, 1).map((idx) => ( - {_.range(1, 5, 1).map((idx) => ( - {_.range(1, 9, 1).map((idx) => ( - { {_.range(1, 5, 1).map((idx) => ( - { {_.range(1, 5, 1).map((idx) => ( - { {_.range(1, 9, 1).map((idx) => ( - { +const ImageFileInputForms = ({ fieldName, index, labelName, selectedFile, fileName, handleChangeFile, alert, isDisabled = true }) => { const onChangeFile = (e) => { const file = e.target.files[0]; if (file.type.includes('image')) { @@ -27,14 +27,14 @@ const FileInputForms = ({ fieldName, index, labelName, selectedFile, fileName, h startIcon={React.cloneElement()} > 파일 - + ); }; -FileInputForms.propTypes = { +ImageFileInputForms.propTypes = { fieldName: PropTypes.string.isRequired, index: PropTypes.number.isRequired, labelName: PropTypes.string.isRequired, @@ -45,4 +45,4 @@ FileInputForms.propTypes = { alert: PropTypes.object.isRequired }; -export default FileInputForms; +export default ImageFileInputForms; diff --git a/src/views/cmm/file-ctl/ImageFileTextForm.jsx b/src/views/cmm/file-ctl/ImageFileViewForm.jsx similarity index 86% rename from src/views/cmm/file-ctl/ImageFileTextForm.jsx rename to src/views/cmm/file-ctl/ImageFileViewForm.jsx index 4bc5a0f..2965a1a 100644 --- a/src/views/cmm/file-ctl/ImageFileTextForm.jsx +++ b/src/views/cmm/file-ctl/ImageFileViewForm.jsx @@ -2,7 +2,7 @@ import { InputAdornment, TextField } from '@mui/material'; import { FileDownload } from '@mui/icons-material'; import PropTypes from 'prop-types'; -const ImageFileTextForm = ({ labelName = '', fileName, methodName = '', handleViewImg = () => {} }) => ( +const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleViewImg = () => {} }) => ( <> {fileName && ( ); -ImageFileTextForm.propTypes = { +ImageFileViewForm.propTypes = { labelName: PropTypes.string.isRequired, fileName: PropTypes.string, methodName: PropTypes.string.isRequired, handleViewImg: PropTypes.func.isRequired }; -export default ImageFileTextForm; +export default ImageFileViewForm;