|
|
|
|
@ -28,7 +28,7 @@ struct TournamentCellView: View { |
|
|
|
|
|
|
|
|
|
private func _buildView(_ build: any TournamentBuildHolder, existingTournament: Tournament?) -> some View { |
|
|
|
|
HStack { |
|
|
|
|
DateBoxView(date: tournament.startDate, displayStyle: .short) |
|
|
|
|
DateBoxView(date: tournament.startDate, displayStyle: displayStyle == .wide ? .short : .wide) |
|
|
|
|
Rectangle() |
|
|
|
|
.fill(color) |
|
|
|
|
.frame(width: 2) |
|
|
|
|
@ -56,7 +56,7 @@ struct TournamentCellView: View { |
|
|
|
|
Button { |
|
|
|
|
if let existingTournament { |
|
|
|
|
navigation.agendaDestination = .activity |
|
|
|
|
navigation.tournament = existingTournament |
|
|
|
|
navigation.path.append(existingTournament) |
|
|
|
|
} else { |
|
|
|
|
let event = federalTournament.getEvent() |
|
|
|
|
let newTournament = Tournament.newEmptyInstance() |
|
|
|
|
|