update,
This commit is contained in:
@@ -5,17 +5,13 @@ import DialogActions from '@mui/material/DialogActions';
|
||||
import DialogContent from '@mui/material/DialogContent';
|
||||
|
||||
import type { ConfirmDialogProps } from './types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export function ConfirmDialog({
|
||||
open,
|
||||
title,
|
||||
action,
|
||||
content,
|
||||
onClose,
|
||||
...other
|
||||
}: ConfirmDialogProps) {
|
||||
export function ConfirmDialog({ open, title, action, content, onClose, ...other }: ConfirmDialogProps) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Dialog fullWidth maxWidth="xs" open={open} onClose={onClose} {...other}>
|
||||
<DialogTitle sx={{ pb: 2 }}>{title}</DialogTitle>
|
||||
@@ -26,7 +22,7 @@ export function ConfirmDialog({
|
||||
{action}
|
||||
|
||||
<Button variant="outlined" color="inherit" onClick={onClose}>
|
||||
Cancel
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
Reference in New Issue
Block a user