remove hscroll online reg

paca_championship
Raz 11 months ago
parent 07a0b632f9
commit 78624bd422
  1. 16
      PadelClub/Views/Tournament/Screen/TournamentSettingsView.swift

@ -16,7 +16,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable {
case general case general
case club(Tournament) case club(Tournament)
case matchFormats case matchFormats
case onlineRegistration(Tournament)
var id: String { String(describing: self) } var id: String { String(describing: self) }
@ -30,8 +29,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable {
return "Général" return "Général"
case .club: case .club:
return "Terrains" return "Terrains"
case .onlineRegistration:
return "Inscriptions"
} }
} }
@ -49,15 +46,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable {
} }
func badgeImage() -> Badge? { func badgeImage() -> Badge? {
switch self {
case .onlineRegistration(let tournament):
if tournament.enableOnlineRegistration {
return .checkmark
}
default:
return nil
}
return nil return nil
} }
} }
@ -67,7 +55,7 @@ struct TournamentSettingsView: View {
@Environment(Tournament.self) var tournament: Tournament @Environment(Tournament.self) var tournament: Tournament
private func destinations() -> [TournamentSettings] { private func destinations() -> [TournamentSettings] {
[.general, .club(tournament), .matchFormats, .onlineRegistration(tournament)] [.general, .club(tournament), .matchFormats]
} }
var body: some View { var body: some View {
@ -80,8 +68,6 @@ struct TournamentSettingsView: View {
TournamentMatchFormatsSettingsView() TournamentMatchFormatsSettingsView()
case .general: case .general:
TournamentGeneralSettingsView(tournament: tournament) TournamentGeneralSettingsView(tournament: tournament)
case .onlineRegistration:
RegisrationSetupView(tournament: tournament)
case .club: case .club:
TournamentClubSettingsView() TournamentClubSettingsView()
} }

Loading…
Cancel
Save