From 521151263265179e06b3c472130082059dee65eb Mon Sep 17 00:00:00 2001 From: minuk926 Date: Thu, 2 Jun 2022 18:37:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20alert=20->=20sweetalert2=20=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/pboard/ModifyPublicBoardForm.jsx | 12 ++++++------ src/views/biz/pboard/PublicBoard.jsx | 7 ++++--- src/views/cmm/file-ctl/FileForm.jsx | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/biz/pboard/ModifyPublicBoardForm.jsx b/src/views/biz/pboard/ModifyPublicBoardForm.jsx index 486e4cc..179ae48 100644 --- a/src/views/biz/pboard/ModifyPublicBoardForm.jsx +++ b/src/views/biz/pboard/ModifyPublicBoardForm.jsx @@ -115,7 +115,7 @@ const ModifyPublicBoardForm = (props) => { disabled={!owner} required label="제목" - value={subject} + value={subject || ''} onChange={(e) => setSubject(e.target.value)} fullWidth /> @@ -139,18 +139,18 @@ const ModifyPublicBoardForm = (props) => { - + - + - + - + @@ -162,7 +162,7 @@ const ModifyPublicBoardForm = (props) => { } }} readOnly={!owner} - value={contents} + value={contents || ''} onChange={setContents} modules={modules} formats={formats} diff --git a/src/views/biz/pboard/PublicBoard.jsx b/src/views/biz/pboard/PublicBoard.jsx index 0eed3f4..a2aa48b 100644 --- a/src/views/biz/pboard/PublicBoard.jsx +++ b/src/views/biz/pboard/PublicBoard.jsx @@ -61,14 +61,15 @@ const PublicBoard = () => { headerAlign: 'center', field: 'inFile', align: 'center', - width: 100, + width: 80, renderCell: (params) => ( // console.log(params.row.inFilename); <>{params.row.inFilename ? : ''} ) }, - { headerName: '작성일자', headerAlign: 'center', field: 'inNalja', align: 'center', width: 130 }, - { headerName: '조회수', headerAlign: 'center', field: 'inHit', align: 'right', width: 100 } + { headerName: '작성자', headerAlign: 'center', field: 'inName', align: 'center', width: 100 }, + { headerName: '작성일자', headerAlign: 'center', field: 'inNalja', align: 'center', width: 100 }, + { headerName: '조회수', headerAlign: 'center', field: 'inHit', align: 'right', width: 80 } ]; const search = useCallback(() => { diff --git a/src/views/cmm/file-ctl/FileForm.jsx b/src/views/cmm/file-ctl/FileForm.jsx index 13f1792..f600675 100644 --- a/src/views/cmm/file-ctl/FileForm.jsx +++ b/src/views/cmm/file-ctl/FileForm.jsx @@ -53,7 +53,7 @@ const FileForm = ({ }; FileForm.propTypes = { - isDownload: PropTypes.bool.isRequired, + isDownload: PropTypes.bool, labelName: PropTypes.string.isRequired, selectedFile: PropTypes.string, isDisabled: PropTypes.bool.isRequired,