|
|
|
@ -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>
|
|
|
|
|
);
|
|
|
|
|