File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -45,31 +45,19 @@ const ProfileSettings = () => {
45
45
</ Button >
46
46
< Dialog open = { open } onClose = { handleClose } >
47
47
< DialogTitle > Delete Profile</ DialogTitle >
48
- < DialogContent >
49
- < DialogContentText >
50
- Are you sure you want to delete your profile? This action cannot be undone.
51
- </ DialogContentText >
52
- </ DialogContent >
53
- < DialogActions >
54
- < Button onClick = { handleClose } > Cancel</ Button >
55
- < Button onClick = { handleDeleteConfirm } color = "error" >
56
- Delete
57
- </ Button >
58
- </ DialogActions >
59
- </ Dialog >
60
- < Dialog open = { deleteConfirmOpen } onClose = { handleDeleteConfirmClose } >
61
- < DialogTitle > Deleting Profile</ DialogTitle >
62
48
< DialogContent >
63
49
{ deleteInProgress ? (
64
50
< LinearProgress />
65
51
) : deleteSuccess ? (
66
52
< DialogContentText > Profile deleted successfully!</ DialogContentText >
67
53
) : (
68
- < DialogContentText > Are you sure you want to delete your profile?</ DialogContentText >
54
+ < DialogContentText >
55
+ Are you sure you want to delete your profile? This action cannot be undone.
56
+ </ DialogContentText >
69
57
) }
70
58
</ DialogContent >
71
59
< DialogActions >
72
- < Button onClick = { handleDeleteConfirmClose } disabled = { deleteInProgress } >
60
+ < Button onClick = { handleClose } disabled = { deleteInProgress } >
73
61
{ deleteSuccess ? 'Close' : 'Cancel' }
74
62
</ Button >
75
63
{ ! deleteSuccess && (
You can’t perform that action at this time.
0 commit comments