Push the deactivate account screen. (#3297)

This commit is contained in:
Doug
2024-09-18 10:21:48 +01:00
committed by GitHub
parent 5625e78fc9
commit 5078f571ed
11 changed files with 11 additions and 41 deletions
@@ -181,11 +181,12 @@ struct SettingsScreen: View {
context.send(viewAction: .logout)
})
.accessibilityIdentifier(A11yIdentifiers.settingsScreen.logout)
if context.viewState.showAccountDeactivation {
ListRow(label: .action(title: L10n.actionDeactivateAccount,
icon: \.warning,
role: .destructive),
kind: .button {
kind: .navigationLink {
context.send(viewAction: .deactivateAccount)
})
}