You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.8 KiB
59 lines
1.8 KiB
//
|
|
// ToolboxView.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 29/02/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ToolboxView: View {
|
|
@Environment(NavigationViewModel.self) private var navigation: NavigationViewModel
|
|
|
|
var body: some View {
|
|
@Bindable var navigation = navigation
|
|
NavigationStack(path: $navigation.toolboxPath) {
|
|
List {
|
|
Section {
|
|
NavigationLink {
|
|
SelectablePlayerListView()
|
|
} label: {
|
|
Label("Rechercher un joueur", systemImage: "person.fill.viewfinder")
|
|
}
|
|
}
|
|
|
|
Section {
|
|
NavigationLink {
|
|
RankCalculatorView()
|
|
} label: {
|
|
Label("Calculateur de points", systemImage: "scalemass")
|
|
}
|
|
}
|
|
|
|
Section {
|
|
NavigationLink {
|
|
GlobalSettingsView()
|
|
} label: {
|
|
Label("Formats de jeu par défaut", systemImage: "megaphone")
|
|
}
|
|
NavigationLink {
|
|
DurationSettingsView()
|
|
} label: {
|
|
Label("Définir les durées moyennes", systemImage: "deskclock")
|
|
}
|
|
} footer: {
|
|
Text("Vous pouvez définir vos propres estimations de durées de match en fonction du format de jeu.")
|
|
}
|
|
|
|
Section {
|
|
Link("Accéder au guide de la compétition", destination: URLs.padelRules.url)
|
|
}
|
|
}
|
|
.navigationTitle(TabDestination.toolbox.title)
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ToolboxView()
|
|
}
|
|
|