Skip to content

Commit

Permalink
remove log out button from aboutView
Browse files Browse the repository at this point in the history
  • Loading branch information
wissehes committed Jan 30, 2023
1 parent 8a800f7 commit 6b81bde
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Rooster voor Zermelo/Views/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import SwiftUI

struct AboutView: View {
@EnvironmentObject var authManager: AuthManager
// @EnvironmentObject var authManager: AuthManager

@State var confirmationShowing = false

Expand All @@ -31,12 +31,12 @@ struct AboutView: View {
}
}

Section("about.logout") {
Button(role: .destructive) { confirmationShowing = true } label: {
Label("about.logout", systemImage: "person.crop.circle.badge.xmark.fill")
.foregroundColor(.red)
}
}
// Section("about.logout") {
// Button(role: .destructive) { confirmationShowing = true } label: {
// Label("about.logout", systemImage: "person.crop.circle.badge.xmark.fill")
// .foregroundColor(.red)
// }
// }

Section("about.privacy") {
Text("about.privacy.text")
Expand All @@ -51,12 +51,12 @@ struct AboutView: View {
.font(.subheadline)
}
}.navigationTitle("about.about")
.confirmationDialog("about.logout.confirm.title", isPresented: $confirmationShowing) {
Button("about.logout.confirm.confirm", role: .destructive) { authManager.signOut() }
Button("word.cancel", role: .cancel) {}
} message: {
Text("about.logout.confirm.subtitle")
}
// .confirmationDialog("about.logout.confirm.title", isPresented: $confirmationShowing) {
// Button("about.logout.confirm.confirm", role: .destructive) { authManager.signOut() }
// Button("word.cancel", role: .cancel) {}
// } message: {
// Text("about.logout.confirm.subtitle")
// }
.analyticsScreen(name: "About")
}
}
Expand Down

0 comments on commit 6b81bde

Please sign in to comment.