main
Razmig Sarkissian 1 month ago
parent fbd2a083b1
commit 44f9ab1b1c
  1. 2
      PadelClub/ViewModel/AgendaDestination.swift
  2. 8
      PadelClub/Views/Navigation/MainView.swift

@ -25,7 +25,7 @@ enum AgendaDestination: Int, CaseIterable, Identifiable, Selectable, Equatable {
var localizedTitleKey: String { var localizedTitleKey: String {
switch self { switch self {
case .activity: case .activity:
return "En cours" return "À venir"
case .history: case .history:
return "Terminé" return "Terminé"
case .tenup: case .tenup:

@ -80,16 +80,16 @@ struct MainView: View {
} }
.toolbarBackground(.visible, for: .tabBar) .toolbarBackground(.visible, for: .tabBar)
OngoingContainerView()
.tabItem(for: .ongoing)
.badge(self.dataStore.runningMatches().count)
.toolbarBackground(.visible, for: .tabBar)
UmpireOptionsView() UmpireOptionsView()
.tabItem(for: .umpire) .tabItem(for: .umpire)
.toolbarBackground(.visible, for: .tabBar) .toolbarBackground(.visible, for: .tabBar)
// TournamentOrganizerView() // TournamentOrganizerView()
// .tabItem(for: .tournamentOrganizer) // .tabItem(for: .tournamentOrganizer)
// .toolbarBackground(.visible, for: .tabBar) // .toolbarBackground(.visible, for: .tabBar)
OngoingContainerView()
.tabItem(for: .ongoing)
.badge(self.dataStore.runningMatches().count)
.toolbarBackground(.visible, for: .tabBar)
ToolboxView() ToolboxView()
.tabItem(for: .toolbox) .tabItem(for: .toolbox)
.toolbarBackground(.visible, for: .tabBar) .toolbarBackground(.visible, for: .tabBar)

Loading…
Cancel
Save