fix: alert -> sweetalert2 로 변경 적용

main
minuk926 2 years ago
parent 4756afcd69
commit 5211512632

@ -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) => {
</FormControl>
</Grid>
<Grid item xs={3}>
<TextField size="small" disabled label="작성자" value={rowData.inName} fullWidth />
<TextField size="small" disabled label="작성자" value={rowData.inName || ''} fullWidth />
</Grid>
</Grid>
<Grid container spacing={1} mt={1}>
<Grid item xs={3}>
<TextField size="small" disabled label="등록일" value={rowData.inNalja} fullWidth />
<TextField size="small" disabled label="등록일" value={rowData.inNalja || ''} fullWidth />
</Grid>
<Grid item xs={3}>
<TextField size="small" disabled label="번호" value={rowData.inCode} fullWidth />
<TextField size="small" disabled label="번호" value={rowData.inCode || ''} fullWidth />
</Grid>
<Grid item xs={3}>
<TextField size="small" disabled label="조회수" value={rowData.inHit} fullWidth />
<TextField size="small" disabled label="조회수" value={rowData.inHit || ''} fullWidth />
</Grid>
</Grid>
<Grid container spacing={1} mt={1}>
@ -162,7 +162,7 @@ const ModifyPublicBoardForm = (props) => {
}
}}
readOnly={!owner}
value={contents}
value={contents || ''}
onChange={setContents}
modules={modules}
formats={formats}

@ -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 ? <IconFileText stroke={1.5} size="1rem" /> : ''}</>
)
},
{ 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(() => {

@ -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,

Loading…
Cancel
Save