Laurent 1 year ago
commit 8f3e781fef
  1. 4
      PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift
  2. 6
      PadelClub/Views/Tournament/Shared/TournamentCellView.swift

@ -670,7 +670,7 @@ struct InscriptionManagerView: View {
Section { Section {
TipView(searchTip) { action in TipView(searchTip) { action in
presentPlayerCreation = true presentPlayerSearch = true
} }
.tipStyle(tint: nil) .tipStyle(tint: nil)
} }
@ -678,7 +678,7 @@ struct InscriptionManagerView: View {
Section { Section {
TipView(createTip) { action in TipView(createTip) { action in
presentPlayerSearch = true presentPlayerCreation = true
} }
.tipStyle(tint: nil) .tipStyle(tint: nil)
} }

@ -63,7 +63,7 @@ struct TournamentCellView: View {
VStack(alignment: .leading, spacing: 0.0) { VStack(alignment: .leading, spacing: 0.0) {
if let tournament = tournament as? Tournament { if let tournament = tournament as? Tournament {
HStack { HStack {
Text(tournament.locationLabel(displayStyle)) Text(tournament.locationLabel(displayStyle)).lineLimit(1)
.font(.caption) .font(.caption)
Spacer() Spacer()
if tournament.isPrivate { if tournament.isPrivate {
@ -71,7 +71,7 @@ struct TournamentCellView: View {
} }
} }
} else { } else {
Text(tournament.clubLabel()) Text(tournament.clubLabel()).lineLimit(1)
.font(.caption) .font(.caption)
} }
HStack(alignment: .bottom) { HStack(alignment: .bottom) {
@ -115,7 +115,7 @@ struct TournamentCellView: View {
Text(word + teamCount.pluralSuffix) Text(word + teamCount.pluralSuffix)
} }
} }
Text(tournament.subtitleLabel()) Text(tournament.subtitleLabel()).lineLimit(1)
} else { } else {
Text(build.category.localizedLabel()) Text(build.category.localizedLabel())
Text(build.age.localizedLabel()) Text(build.age.localizedLabel())

Loading…
Cancel
Save