parent
b961b8919b
commit
27fa26f86e
@ -0,0 +1,35 @@ |
||||
// |
||||
// TournamentBroadcastRowView.swift |
||||
// PadelClub |
||||
// |
||||
// Created by Razmig Sarkissian on 05/06/2024. |
||||
// |
||||
|
||||
import SwiftUI |
||||
import LeStorage |
||||
|
||||
struct TournamentBroadcastRowView: View { |
||||
var tournament: Tournament |
||||
|
||||
var body: some View { |
||||
NavigationLink(value: Screen.broadcast) { |
||||
LabeledContent { |
||||
if Store.main.userId == nil { |
||||
Image(systemName: "xmark.circle.fill") |
||||
.foregroundStyle(.logoRed) |
||||
} else { |
||||
if tournament.isPrivate { |
||||
Text("tournoi privé").foregroundStyle(.logoRed) |
||||
} else { |
||||
Text("Automatique") |
||||
} |
||||
} |
||||
} label: { |
||||
Text("Publication") |
||||
if Store.main.userId == nil { |
||||
Text("Un compte Padel Club est nécessaire") |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue