fix: 삭제 버튼 색생 fix

mpower
minuk926 2 years ago
parent 9d05ef1d1c
commit d760c5ebff

@ -235,7 +235,7 @@ const ModifyJudgeDataForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
</Button> </Button>
</Grid> </Grid>
<Grid item> <Grid item>
<Button variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}> <Button variant="contained" size="small" color="error" startIcon={<Delete />} onClick={onRemove}>
삭제 삭제
</Button> </Button>
</Grid> </Grid>

@ -142,7 +142,9 @@ const JudgeReview = ({ msDatagb, menuName }) => {
field: 'actions', field: 'actions',
type: 'actions', type: 'actions',
width: 80, width: 80,
getActions: (params) => [<GridActionsCellItem icon={<DeleteIcon />} label="Delete" onClick={deleteJudge(params.row)} />], getActions: (params) => [
<GridActionsCellItem icon={<DeleteIcon />} color="error" label="Delete" onClick={deleteJudge(params.row)} />
],
align: 'center' align: 'center'
} }
]; ];

@ -182,7 +182,7 @@ const ModifyBoardForm = (props) => {
</Button> </Button>
</Grid> </Grid>
<Grid item> <Grid item>
<Button disabled={!owner} variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}> <Button disabled={!owner} variant="contained" size="small" color="error" startIcon={<Delete />} onClick={onRemove}>
삭제 삭제
</Button> </Button>
</Grid> </Grid>

@ -210,7 +210,7 @@ const ModifyPublicBoardForm = (props) => {
} }
}} }}
> >
<Button disabled={!owner} variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}> <Button disabled={!owner} variant="contained" size="small" color="error" startIcon={<Delete />} onClick={onRemove}>
삭제 삭제
</Button> </Button>
</Grid> </Grid>

@ -176,7 +176,7 @@ const UserManagementForm = (props) => {
} }
}} }}
> >
<Button variant="contained" size="small" startIcon={<Delete />} onClick={onRemove}> <Button variant="contained" size="small" color="error" startIcon={<Delete />} onClick={onRemove}>
삭제 삭제
</Button> </Button>
</Grid> </Grid>

Loading…
Cancel
Save