parent
53756b3c58
commit
f06a54cc67
@ -0,0 +1,20 @@ |
||||
// |
||||
// AppSettings.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Razmig Sarkissian on 26/03/2024. |
||||
// |
||||
|
||||
import Foundation |
||||
import LeStorage |
||||
|
||||
class AppSettings: MicroStorable { |
||||
|
||||
static var fileName: String { "appsettings.json" } |
||||
|
||||
required init() { |
||||
|
||||
} |
||||
|
||||
// var id: String = Store.randomId() |
||||
} |
||||
@ -1,86 +0,0 @@ |
||||
// |
||||
// InscriptionTipsView.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Razmig Sarkissian on 24/03/2024. |
||||
// |
||||
|
||||
import SwiftUI |
||||
import TipKit |
||||
|
||||
struct InscriptionTipsView: View { |
||||
@Environment(Tournament.self) private var tournament: Tournament |
||||
|
||||
var body: some View { |
||||
List { |
||||
|
||||
Section { |
||||
|
||||
let fileTip = InscriptionManagerFileInputTip() |
||||
TipView(fileTip) { action in |
||||
if action.id == "website" { |
||||
} else if action.id == "add-team-file" { |
||||
} |
||||
} |
||||
.tipStyle(tint: nil) |
||||
} |
||||
|
||||
Section { |
||||
|
||||
let pasteTip = InscriptionManagerPasteInputTip() |
||||
TipView(pasteTip) { action in |
||||
if let paste = UIPasteboard.general.string { |
||||
//self.pasteField = paste |
||||
} |
||||
} |
||||
.tipStyle(tint: nil) |
||||
} |
||||
|
||||
Section { |
||||
|
||||
let searchTip = InscriptionManagerSearchInputTip() |
||||
TipView(searchTip) { action in |
||||
//presentPlayerCreation = true |
||||
} |
||||
.tipStyle(tint: nil) |
||||
} |
||||
|
||||
Section { |
||||
|
||||
let createTip = InscriptionManagerCreateInputTip() |
||||
TipView(createTip) { action in |
||||
//presentPlayerSelection = true |
||||
} |
||||
.tipStyle(tint: nil) |
||||
} |
||||
|
||||
Section { |
||||
ContentUnavailableView("Aucune équipe", systemImage: "person.2.slash", description: Text("Vous n'avez encore aucune équipe dans votre liste d'attente.")) |
||||
} |
||||
|
||||
// if let mostRecentDate, let currentRankSourceDate, currentRankSourceDate < mostRecentDate, tournament.isOver == false { |
||||
// |
||||
// if #available(iOS 17.0, *) { |
||||
// Section { |
||||
// let tip = InscriptionManagerRankUpdateTip() |
||||
// TipView(tip) { action in |
||||
// self.currentRankSourceDate = mostRecentDate |
||||
// } |
||||
// .tipStyle(tint: nil) |
||||
// } |
||||
// } |
||||
// |
||||
// rankingDateSourcePickerView(showDateInLabel: false) |
||||
// } else if tournament.currentRankSourceDate == nil { |
||||
// rankingDateSourcePickerView(showDateInLabel: false) |
||||
// } |
||||
// |
||||
|
||||
} |
||||
} |
||||
} |
||||
|
||||
#Preview { |
||||
InscriptionTipsView() |
||||
.environment(Tournament.mock()) |
||||
} |
||||
Loading…
Reference in new issue