Swap order of Logout and Cancel alert buttons

To conform to Apple's Human Interface Guidelines
This commit is contained in:
2022-12-27 08:27:38 -04:00
parent aea271182e
commit cc95402581

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")
} }