|
|
|
@ -2,7 +2,7 @@ import { useMemo, useRef, useState } from 'react';
|
|
|
|
|
|
|
|
|
|
import { useAlert } from 'react-alert';
|
|
|
|
|
// material-ui
|
|
|
|
|
import { Button, FormControl, Grid, MenuItem, Select, TextField } from '@mui/material';
|
|
|
|
|
import { Button, Divider, FormControl, Grid, MenuItem, Select, TextField } from '@mui/material';
|
|
|
|
|
|
|
|
|
|
// assets
|
|
|
|
|
|
|
|
|
@ -160,7 +160,7 @@ const PublicBoardForm = (props) => {
|
|
|
|
|
<TextField size="small" disabled label="작성자" value={inName} fullWidth />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mb={1}>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|
<Grid item xs={12} sm={3}>
|
|
|
|
|
<TextField size="small" disabled label="등록일" value={inNalja} fullWidth />
|
|
|
|
|
</Grid>
|
|
|
|
@ -171,7 +171,7 @@ const PublicBoardForm = (props) => {
|
|
|
|
|
<TextField size="small" disabled label="조회수" value={inHit} fullWidth />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mb={1}>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|
<Grid item xs={12}>
|
|
|
|
|
<ReactQuill
|
|
|
|
|
ref={(element) => {
|
|
|
|
@ -187,7 +187,7 @@ const PublicBoardForm = (props) => {
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mb={1}>
|
|
|
|
|
<Grid container spacing={1} item xs={12}>
|
|
|
|
|
<Grid item sm={6}>
|
|
|
|
|
<FileForm
|
|
|
|
|
isDownload={inFilename}
|
|
|
|
@ -201,13 +201,18 @@ const PublicBoardForm = (props) => {
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1} mb={1}>
|
|
|
|
|
<Grid item xs={12}>
|
|
|
|
|
<Divider />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item container spacing={0.5} xs={12}>
|
|
|
|
|
<Grid item>
|
|
|
|
|
<Button variant="contained" size="small" startIcon={<List />} onClick={onList}>
|
|
|
|
|
목록
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item>
|
|
|
|
|
<Grid item style={{ marginLeft: 'auto' }}>
|
|
|
|
|
<Button variant="contained" size="small" startIcon={<Save />} onClick={onSave}>
|
|
|
|
|
저장
|
|
|
|
|
</Button>
|
|
|
|
|