Browse Source

Swap order of Logout and Cancel alert buttons

To conform to Apple's Human Interface Guidelines

Closes: #159
Changelog-Fixed: Swapped order of Logout and Cancel alert buttons
post-button-style
Terry Yiu 2 years ago
committed by William Casarin
parent
commit
0af8646fd5
  1. 6
      damus/Views/ConfigView.swift

6
damus/Views/ConfigView.swift

@ -102,12 +102,12 @@ struct ConfigView: View {
.navigationTitle("Settings")
.navigationBarTitleDisplayMode(.large)
.alert("Logout", isPresented: $confirm_logout) {
Button("Logout") {
notify(.logout, ())
}
Button("Cancel") {
confirm_logout = false
}
Button("Logout") {
notify(.logout, ())
}
} message: {
Text("Make sure your nsec account key is saved before you logout or you will lose access to this account")
}

Loading…
Cancel
Save