fix: alert -> sweetalert2 로 변경 적용

main
minuk926 2 years ago
parent 4756afcd69
commit 5211512632

@ -115,7 +115,7 @@ const ModifyPublicBoardForm = (props) => {
disabled={!owner} disabled={!owner}
required required
label="제목" label="제목"
value={subject} value={subject || ''}
onChange={(e) => setSubject(e.target.value)} onChange={(e) => setSubject(e.target.value)}
fullWidth fullWidth
/> />
@ -139,18 +139,18 @@ const ModifyPublicBoardForm = (props) => {
</FormControl> </FormControl>
</Grid> </Grid>
<Grid item xs={3}> <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> </Grid>
<Grid container spacing={1} mt={1}> <Grid container spacing={1} mt={1}>
<Grid item xs={3}> <Grid item xs={3}>
<TextField size="small" disabled label="등록일" value={rowData.inNalja} fullWidth /> <TextField size="small" disabled label="등록일" value={rowData.inNalja || ''} fullWidth />
</Grid> </Grid>
<Grid item xs={3}> <Grid item xs={3}>
<TextField size="small" disabled label="번호" value={rowData.inCode} fullWidth /> <TextField size="small" disabled label="번호" value={rowData.inCode || ''} fullWidth />
</Grid> </Grid>
<Grid item xs={3}> <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> </Grid>
<Grid container spacing={1} mt={1}> <Grid container spacing={1} mt={1}>
@ -162,7 +162,7 @@ const ModifyPublicBoardForm = (props) => {
} }
}} }}
readOnly={!owner} readOnly={!owner}
value={contents} value={contents || ''}
onChange={setContents} onChange={setContents}
modules={modules} modules={modules}
formats={formats} formats={formats}

@ -61,14 +61,15 @@ const PublicBoard = () => {
headerAlign: 'center', headerAlign: 'center',
field: 'inFile', field: 'inFile',
align: 'center', align: 'center',
width: 100, width: 80,
renderCell: (params) => ( renderCell: (params) => (
// console.log(params.row.inFilename); // console.log(params.row.inFilename);
<>{params.row.inFilename ? <IconFileText stroke={1.5} size="1rem" /> : ''}</> <>{params.row.inFilename ? <IconFileText stroke={1.5} size="1rem" /> : ''}</>
) )
}, },
{ headerName: '작성일자', headerAlign: 'center', field: 'inNalja', align: 'center', width: 130 }, { headerName: '작성자', headerAlign: 'center', field: 'inName', align: 'center', width: 100 },
{ headerName: '조회수', headerAlign: 'center', field: 'inHit', align: 'right', width: 100 } { headerName: '작성일자', headerAlign: 'center', field: 'inNalja', align: 'center', width: 100 },
{ headerName: '조회수', headerAlign: 'center', field: 'inHit', align: 'right', width: 80 }
]; ];
const search = useCallback(() => { const search = useCallback(() => {

@ -53,7 +53,7 @@ const FileForm = ({
}; };
FileForm.propTypes = { FileForm.propTypes = {
isDownload: PropTypes.bool.isRequired, isDownload: PropTypes.bool,
labelName: PropTypes.string.isRequired, labelName: PropTypes.string.isRequired,
selectedFile: PropTypes.string, selectedFile: PropTypes.string,
isDisabled: PropTypes.bool.isRequired, isDisabled: PropTypes.bool.isRequired,

Loading…
Cancel
Save