From fc8de86823567e65516e5b282ebdf10fe78f2198 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 22:55:41 +0000 Subject: [PATCH] Fix: Remove duplicate danger zone and JSX structure --- src/components/settings/AccountProfileTab.tsx | 66 ++++++------------- 1 file changed, 21 insertions(+), 45 deletions(-) diff --git a/src/components/settings/AccountProfileTab.tsx b/src/components/settings/AccountProfileTab.tsx index 91bfa0cd..cc16f5f6 100644 --- a/src/components/settings/AccountProfileTab.tsx +++ b/src/components/settings/AccountProfileTab.tsx @@ -425,29 +425,6 @@ export function AccountProfileTab() { - {/* Danger Zone */} - - - Danger Zone - Irreversible account actions - - - - {deletionRequest && ( -

- Account deletion already in progress -

- )} -
-
- {/* Email Change Dialog */} {user && ( + + + Cancel Email Change? + + This will cancel your pending email change to {pendingEmail}. + Your email will remain as {user?.email}. + You can start a new email change request at any time. + + + + Keep Change + + {cancellingEmail ? 'Cancelling...' : 'Yes, Cancel Change'} + + + + {/* Danger Zone */} @@ -489,28 +487,6 @@ export function AccountProfileTab() { - - - Cancel Email Change? - - This will cancel your pending email change to {pendingEmail}. - Your email will remain as {user?.email}. - You can start a new email change request at any time. - - - - Keep Change - - {cancellingEmail ? 'Cancelling...' : 'Yes, Cancel Change'} - - - - - {/* Account Deletion Dialog */}