|
|
|
@ -19,12 +19,14 @@ import axios from 'axios';
|
|
|
|
|
import { FileDownload, FileUpload } from '@mui/icons-material';
|
|
|
|
|
import FileSaver from 'file-saver';
|
|
|
|
|
import xitCmm from '../../../commons/XitCmm';
|
|
|
|
|
import SearchSection from '../../../layout/MainLayout/Header/SearchSection';
|
|
|
|
|
|
|
|
|
|
const PublicBoardForm = (props) => {
|
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
|
|
|
const { inCode, inDept, inTitle, inHit, inName, inNalja, inFilename, inContents, setOpen, handleModalSave } = props;
|
|
|
|
|
const alert = useAlert();
|
|
|
|
|
const quillRef = useRef();
|
|
|
|
|
const [dept, setDept] = useState('');
|
|
|
|
|
const [dept, setDept] = useState(inDept);
|
|
|
|
|
const [contents, setContents] = useState(inContents);
|
|
|
|
|
const [filesInfo, setFilesInfo] = useState(null);
|
|
|
|
|
const [selectedFile, setSelectedFile] = useState(inFilename); // 파일
|
|
|
|
|