From 78624bd422a759504ecf4530e81c6f522b56be9d Mon Sep 17 00:00:00 2001 From: Raz Date: Wed, 11 Dec 2024 11:18:38 +0100 Subject: [PATCH] remove hscroll online reg --- .../Screen/TournamentSettingsView.swift | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/PadelClub/Views/Tournament/Screen/TournamentSettingsView.swift b/PadelClub/Views/Tournament/Screen/TournamentSettingsView.swift index 36d1078..5dc380e 100644 --- a/PadelClub/Views/Tournament/Screen/TournamentSettingsView.swift +++ b/PadelClub/Views/Tournament/Screen/TournamentSettingsView.swift @@ -16,7 +16,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable { case general case club(Tournament) case matchFormats - case onlineRegistration(Tournament) var id: String { String(describing: self) } @@ -30,8 +29,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable { return "Général" case .club: return "Terrains" - case .onlineRegistration: - return "Inscriptions" } } @@ -49,15 +46,6 @@ enum TournamentSettings: Identifiable, Selectable, Equatable { } func badgeImage() -> Badge? { - switch self { - case .onlineRegistration(let tournament): - if tournament.enableOnlineRegistration { - return .checkmark - } - default: - return nil - } - return nil } } @@ -67,7 +55,7 @@ struct TournamentSettingsView: View { @Environment(Tournament.self) var tournament: Tournament private func destinations() -> [TournamentSettings] { - [.general, .club(tournament), .matchFormats, .onlineRegistration(tournament)] + [.general, .club(tournament), .matchFormats] } var body: some View { @@ -80,8 +68,6 @@ struct TournamentSettingsView: View { TournamentMatchFormatsSettingsView() case .general: TournamentGeneralSettingsView(tournament: tournament) - case .onlineRegistration: - RegisrationSetupView(tournament: tournament) case .club: TournamentClubSettingsView() }