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
This commit is contained in:
tyiu authored and William Casarin committed 2022-12-28 12:40:17 -08:00
1 parent 393745f67c
commit 0af8646fd5
1 file changed
+3 -3
+3 -3
View File
@@ -102,12 +102,12 @@ struct ConfigView: View {
.navigationTitle("Settings") .navigationTitle("Settings")
.navigationBarTitleDisplayMode(.large) .navigationBarTitleDisplayMode(.large)
.alert("Logout", isPresented: $confirm_logout) { .alert("Logout", isPresented: $confirm_logout) {
Button("Logout") {
notify(.logout, ())
}
Button("Cancel") { Button("Cancel") {
confirm_logout = false confirm_logout = false
} }
Button("Logout") {
notify(.logout, ())
}
} message: { } message: {
Text("Make sure your nsec account key is saved before you logout or you will lose access to this account") Text("Make sure your nsec account key is saved before you logout or you will lose access to this account")
} }