diff --git a/src/views/biz/board/PublicBoardForm.jsx b/src/views/biz/board/PublicBoardForm.jsx index 1c2aa0e..65fca51 100644 --- a/src/views/biz/board/PublicBoardForm.jsx +++ b/src/views/biz/board/PublicBoardForm.jsx @@ -2,7 +2,7 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { useAlert } from 'react-alert'; // material-ui -import { Button, Grid, IconButton, Input, InputAdornment, TextField, Tooltip } from '@mui/material'; +import { Button, Grid, IconButton, Input, InputAdornment, MenuItem, Select, TextField, Tooltip } from '@mui/material'; // assets @@ -21,9 +21,10 @@ import FileSaver from 'file-saver'; import xitCmm from '../../../commons/XitCmm'; const PublicBoardForm = (props) => { - const { inCode, inBgubun, inTitle, inHit, inName, inNalja, inFilename, inContents, setOpen, handleModalSave } = props; + const { inCode, inDept, inTitle, inHit, inName, inNalja, inFilename, inContents, setOpen, handleModalSave } = props; const alert = useAlert(); const quillRef = useRef(); + const [dept, setDept] = useState(''); const [contents, setContents] = useState(inContents); const [filesInfo, setFilesInfo] = useState(null); const [selectedFile, setSelectedFile] = useState(inFilename); // 파일 @@ -36,7 +37,7 @@ const PublicBoardForm = (props) => { const formData = new FormData(); formData.append('inCode', inCode); formData.append('inTitle', inTitle); - formData.append('inBgubun', inBgubun); + formData.append('inDept', dept); formData.append('inContents', contents); formData.append('inFilename', selectedFile); @@ -175,7 +176,26 @@ const PublicBoardForm = (props) => { - + {/* */} +