Adds button to pay the tournament

club_update
Laurent 1 year ago
parent c2ca49e9f6
commit d563f2f65f
  1. 8
      PadelClub/Views/Tournament/TournamentView.swift

@ -154,9 +154,13 @@ struct TournamentView: View {
#if DEBUG
Button {
DataStore.shared.copyToLocalServer(tournament: self.tournament)
do {
try self.tournament.payIfNecessary()
} catch {
Logger.error(error)
}
} label: {
Label("Copier sur serveur local", systemImage: "rectangle.portrait.and.arrow.right")
Label("Payer le tournoi", systemImage: "dollarsign.circle.fill")
}
#endif

Loading…
Cancel
Save