refactor: 디자인 작업 반영

main
minuk926 3 years ago
parent b2947e0c3d
commit 6c5c4ed2e0

@ -168,7 +168,7 @@ const ModifyPublicBoardForm = (props) => {
<Grid container spacing={1} mt={1}>
<Grid item xs={8}>
<FileForm
isDownload={typeof rowData?.inFilename === 'undefined'}
isDownload={!!rowData?.inFilename}
isDisabled={!owner}
labelName="첨부파일"
savedFilename={rowData.inFilename}

@ -92,7 +92,7 @@ const PublicBoard = () => {
const handleOnCellClick = (e) => {
if (e?.field === 'inTitle') {
setCreate(false);
setTitle('공지사항 변경');
setTitle('공지사항 상세');
setSelectedRow(e?.row);
setOwner(user.name === e?.row.inName);
modifyPublicBoardHitCount(e?.row?.inCode);
@ -147,15 +147,7 @@ const PublicBoard = () => {
/>
<CmmModal isBackdrop title={title} open={open} setOpen={setOpen}>
{create && <NewPublicBoardForm setOpen={setOpen} rowData={selectedRow} handleModalSave={submitPublicBoard} />}
{!create && (
<ModifyPublicBoardForm
create={create}
setOpen={setOpen}
owner={owner}
rowData={selectedRow}
handleModalSave={submitPublicBoard}
/>
)}
{!create && <ModifyPublicBoardForm setOpen={setOpen} owner={owner} rowData={selectedRow} handleModalSave={submitPublicBoard} />}
</CmmModal>
</MainCard>
);

Loading…
Cancel
Save