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