fix: 버튼 && 간격 조정

main
minuk926 3 years ago
parent 96c555ca3f
commit f8be92b919

@ -187,7 +187,7 @@ const PublicBoardForm = (props) => {
/>
</Grid>
</Grid>
<Grid container spacing={1} item xs={12}>
<Grid container spacing={1} item xs={12} mt={1}>
<Grid item sm={6}>
<FileForm
isDownload={inFilename}

@ -5,7 +5,7 @@ import NumberFormat from 'react-number-format';
import { useAlert } from 'react-alert';
// import format from 'date-fns/format';
import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, InputAdornment } from '@mui/material';
import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, InputAdornment, Divider } from '@mui/material';
import Button from '@mui/material/Button';
import { IconSearch } from '@tabler/icons';
@ -438,11 +438,18 @@ const ModifyJudgeDataForm = ({ rowData, handleModalSave }) => {
</Grid>
</Grid>
</Grid>
<Grid item sx={{ marginTop: 3 }}>
{/* <Button variant="contained" color="primary" size="small" startIcon={<IconFileExport />} onClick={onSave}> */}
<Button disabled variant="contained" color="primary" size="small" onClick={onSave}>
저장
</Button>
<Grid container spacing={1} item xs={12} mt={1}>
<Grid item xs={12}>
<Divider />
</Grid>
</Grid>
<Grid item container spacing={0.5} xs={12} mt={1}>
<Grid item style={{ marginLeft: 'auto' }}>
{/* <Button variant="contained" color="primary" size="small" startIcon={<IconFileExport />} onClick={onSave}> */}
<Button disabled variant="contained" color="primary" size="small" onClick={onSave}>
저장
</Button>
</Grid>
</Grid>
</>
);

@ -218,7 +218,7 @@ const UserManager = () => {
return (
<MainCard>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} lg={6}>
<Grid item xs={12}>
<Grid container spacing={1}>
<Grid item>
<Select size="small" defaultValue={category} value={category} onChange={(e) => setCategory(e.target.value)}>
@ -247,7 +247,7 @@ const UserManager = () => {
/>
{/* <IconSearch stroke={1.5} size="1rem" /> */}
</Grid>
<Grid item>
<Grid item style={{ marginLeft: 'auto' }}>
<Button variant="contained" size="small" onClick={handleCreate}>
사용자 등록
</Button>
@ -255,11 +255,10 @@ const UserManager = () => {
</Grid>
</Grid>
</Grid>
<Grid item xs={12}>
<Divider />
</Grid>
<Grid item xs={12}>
<Divider />
<Grid container spacing={1} item xs={12} mt={1}>
<Grid item xs={12}>
<Divider />
</Grid>
</Grid>
<MuiDataGrid
columns={columns}

@ -133,23 +133,23 @@ const UserManagementForm = (props) => {
</Grid>
</Grid>
<Grid item container spacing={0.5} xs={12} mt={2}>
{!create && (
<Grid item>
<Button variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}>
삭제
</Button>
</Grid>
)}
<Grid item style={{ marginLeft: 'auto' }}>
<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>
</Grid>
{!create && (
<Grid item>
<Button variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}>
삭제
</Button>
</Grid>
)}
</Grid>
</>
);

Loading…
Cancel
Save