Add spacing to confirmation dialog buttons
This commit is contained in:
@@ -77,10 +77,11 @@ export const ConfirmDialog = ({
|
|||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
|
||||||
sx={{
|
sx={{
|
||||||
|
flexDirection: 'row',
|
||||||
justifyContent: actions.extra.show ? 'space-between' : 'end',
|
justifyContent: actions.extra.show ? 'space-between' : 'end',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
gap: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{actions.extra.show && (
|
{actions.extra.show && (
|
||||||
@@ -88,7 +89,12 @@ export const ConfirmDialog = ({
|
|||||||
{actions.extra.title}
|
{actions.extra.title}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Stack direction="row">
|
<Stack
|
||||||
|
sx={{
|
||||||
|
flexDirection: 'row',
|
||||||
|
gap: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{actions.cancel.show && (
|
{actions.cancel.show && (
|
||||||
<Button onClick={onCancel} variant={actions.cancel.contain ? 'contained' : undefined}>
|
<Button onClick={onCancel} variant={actions.cancel.contain ? 'contained' : undefined}>
|
||||||
{actions.cancel.title}
|
{actions.cancel.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user