From b32a4efe51ff95c2c7b0ba29af37796fbcad5558 Mon Sep 17 00:00:00 2001 From: ludelanier Date: Thu, 6 Jun 2024 12:57:40 +0200 Subject: [PATCH] fix review card --- .../AllIn/Components/ReviewCard.swift | 21 ++++++++----------- .../Ressources/en.lproj/Localizable.strings | 1 + .../Ressources/fr.lproj/Localizable.strings | 1 + 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Sources/AllInApp/AllIn/Components/ReviewCard.swift b/Sources/AllInApp/AllIn/Components/ReviewCard.swift index 1d99a95..ec6a780 100644 --- a/Sources/AllInApp/AllIn/Components/ReviewCard.swift +++ b/Sources/AllInApp/AllIn/Components/ReviewCard.swift @@ -44,19 +44,16 @@ struct ReviewCard: View { VStack(alignment: .center,spacing:0){ HStack(){ Spacer() + Text((betDetail.userParticipation?.stake.description) ?? "") + .foregroundColor(.white) + .font(.system(size: 25)) + .fontWeight(.bold) + Image("allcoinWhiteIcon") + .resizable() + .frame(width: 18, height: 20) switch betDetail.bet.status { - case .inProgress: - Text(betDetail) - .foregroundColor(.white) - .font(.system(size: 25)) - .fontWeight(.bold) - case .waiting: - Text("waiting") - .foregroundColor(.white) - .font(.system(size: 25)) - .fontWeight(.bold) - case .closing: - Text("bet_finished") + case .waiting, .inProgress, .closing: + Text("bet_status_stake") .foregroundColor(.white) .font(.system(size: 25)) .fontWeight(.bold) diff --git a/Sources/AllInApp/AllIn/Ressources/en.lproj/Localizable.strings b/Sources/AllInApp/AllIn/Ressources/en.lproj/Localizable.strings index bbe1d1f..5f8b614 100644 --- a/Sources/AllInApp/AllIn/Ressources/en.lproj/Localizable.strings +++ b/Sources/AllInApp/AllIn/Ressources/en.lproj/Localizable.strings @@ -150,6 +150,7 @@ "bet_status_participants_list" = "Participants"; "bet_status_details_drawer" = "Details"; "participation_possible_winnings" = "Possible winnings"; +"bet_status_stake" = "Gambled"; /// Bet history diff --git a/Sources/AllInApp/AllIn/Ressources/fr.lproj/Localizable.strings b/Sources/AllInApp/AllIn/Ressources/fr.lproj/Localizable.strings index c93b188..2d56361 100644 --- a/Sources/AllInApp/AllIn/Ressources/fr.lproj/Localizable.strings +++ b/Sources/AllInApp/AllIn/Ressources/fr.lproj/Localizable.strings @@ -150,6 +150,7 @@ "bet_status_participants_list" = "Liste des participants"; "bet_status_details_drawer" = "Détails"; "participation_possible_winnings" = "Gains possibles"; +"bet_status_stake" = "Pariés"; /// Bet history