Skip to content

Commit 7dd31ea

Browse files
committed
ProfileDel
1 parent 1c9eab9 commit 7dd31ea

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

frontend/src/components/ProfileSettings.jsx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,19 @@ const ProfileSettings = () => {
4545
</Button>
4646
<Dialog open={open} onClose={handleClose}>
4747
<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>
6248
<DialogContent>
6349
{deleteInProgress ? (
6450
<LinearProgress />
6551
) : deleteSuccess ? (
6652
<DialogContentText>Profile deleted successfully!</DialogContentText>
6753
) : (
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>
6957
)}
7058
</DialogContent>
7159
<DialogActions>
72-
<Button onClick={handleDeleteConfirmClose} disabled={deleteInProgress}>
60+
<Button onClick={handleClose} disabled={deleteInProgress}>
7361
{deleteSuccess ? 'Close' : 'Cancel'}
7462
</Button>
7563
{!deleteSuccess && (

0 commit comments

Comments
 (0)