|
|
|
@ -17,17 +17,17 @@ struct TeamHeaderView: View { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private func _teamHeaderView(_ team: TeamRegistration, teamIndex: Int?) -> some View { |
|
|
|
private func _teamHeaderView(_ team: TeamRegistration, teamIndex: Int?) -> some View { |
|
|
|
HStack { |
|
|
|
HStack(spacing: 16.0) { |
|
|
|
if let teamIndex { |
|
|
|
if let teamIndex { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
Text("rang").font(.caption) |
|
|
|
Text("Rang").font(.caption) |
|
|
|
Text("#" + (teamIndex + 1).formatted()) |
|
|
|
Text("#" + (teamIndex + 1).formatted()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if team.unsortedPlayers().isEmpty == false { |
|
|
|
if team.unsortedPlayers().isEmpty == false { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
Text("poids").font(.caption) |
|
|
|
Text("Poids").font(.caption) |
|
|
|
Text(team.weight.formatted()) |
|
|
|
Text(team.weight.formatted()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|