remove a debug option

sync2
Raz 1 year ago
parent a01dfcea59
commit ea671ae14d
  1. 19
      PadelClub/Views/Tournament/TournamentBuildView.swift

@ -113,24 +113,6 @@ struct TournamentBuildView: View {
Section {
#if DEBUG
NavigationLink(value: Screen.rankings) {
LabeledContent {
if tournament.publishRankings == false {
Image(systemName: "exclamationmark.circle.fill")
.foregroundStyle(.logoYellow)
} else {
Image(systemName: "checkmark")
.foregroundStyle(.green)
}
} label: {
Text("Classement final des équipes")
if tournament.publishRankings == false {
Text("Vérifiez le classement avant de publier").foregroundStyle(.logoRed)
}
}
}
#else
if tournament.hasEnded() {
NavigationLink(value: Screen.rankings) {
LabeledContent {
@ -149,7 +131,6 @@ struct TournamentBuildView: View {
}
}
}
#endif
if state == .running || state == .finished {
TournamentInscriptionView(tournament: tournament)
TournamentBroadcastRowView(tournament: tournament)

Loading…
Cancel
Save