consistency yellow

multistore
Razmig Sarkissian 1 year ago
parent f0919515bf
commit c5cc8c0233
  1. 2
      PadelClub/ViewModel/AgendaDestination.swift
  2. 8
      PadelClub/Views/Navigation/Umpire/UmpireView.swift
  3. 2
      PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift

@ -80,7 +80,7 @@ enum AgendaDestination: Int, CaseIterable, Identifiable, Selectable, Equatable {
return nil return nil
case .tenup: case .tenup:
if FederalDataViewModel.shared.federalTournaments.isEmpty { if FederalDataViewModel.shared.federalTournaments.isEmpty {
return .custom(systemName: "exclamationmark.circle.fill", color: .yellow) return .custom(systemName: "exclamationmark.circle.fill", color: .logoYellow)
} else { } else {
return nil return nil
} }

@ -227,12 +227,12 @@ struct AccountRowView: View {
LabeledContent { LabeledContent {
if Store.main.hasToken() { if Store.main.hasToken() {
Text(self.userName) Text(self.userName)
} else { } else if Store.main.userName() != nil {
Image(systemName: "exclamationmark.circle.fill") Image(systemName: "xmark.circle.fill")
.foregroundStyle(.master) .foregroundStyle(.logoRed)
} }
} label: { } label: {
Label(Store.main.userName() == nil ? "Créer votre compte Padel Club" : "Mon compte", systemImage: "person.fill") Label("Mon compte Padel Club", systemImage: "person.fill")
if dataStore.user.email.isEmpty == false { if dataStore.user.email.isEmpty == false {
Text(dataStore.user.email) Text(dataStore.user.email)
} }

@ -16,7 +16,7 @@ struct TournamentBroadcastRowView: View {
LabeledContent { LabeledContent {
if Store.main.userId == nil { if Store.main.userId == nil {
Image(systemName: "exclamationmark.circle.fill") Image(systemName: "exclamationmark.circle.fill")
.foregroundStyle(.master) .foregroundStyle(.logoYellow)
} else { } else {
if tournament.isPrivate { if tournament.isPrivate {
Text("tournoi privé").foregroundStyle(.logoRed) Text("tournoi privé").foregroundStyle(.logoRed)

Loading…
Cancel
Save