Skip to content

Commit

Permalink
💄 (LekaApp): Add Label in AccountSection
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Feb 5, 2024
1 parent cb9733a commit 796c8b5
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ extension SettingsView {

var body: some View {
Section("") {
Group {
Button {
self.rootOwnerViewModel.showConfirmDisconnection.toggle()
} label: {
Text(l10n.SettingsView.AccountSection.LogOut.buttonLabel)
.foregroundColor(.accentColor)
}

Button(role: .destructive) {
self.rootOwnerViewModel.showConfirmDeleteAccount.toggle()
} label: {
Text(l10n.SettingsView.AccountSection.DeleteAccount.buttonLabel)
}
Button {
self.rootOwnerViewModel.showConfirmDisconnection = true
} label: {
Label(String(l10n.SettingsView.AccountSection.LogOut.buttonLabel.characters), systemImage: "rectangle.portrait.and.arrow.forward")
.foregroundColor(.accentColor)
}

Button(role: .destructive) {
self.rootOwnerViewModel.showConfirmDeleteAccount = true
} label: {
Label(String(l10n.SettingsView.AccountSection.DeleteAccount.buttonLabel.characters), systemImage: "trash")
.foregroundStyle(.red)
}
}
.alert(String(l10n.SettingsView.AccountSection.LogOut.alertTitle.characters), isPresented: self.$rootOwnerViewModel.showConfirmDisconnection) {
Expand Down

0 comments on commit 796c8b5

Please sign in to comment.