taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 0d09d7df346fde190f097a215d9fcf8c8ab7d037
parent 8a27e5e803239b91a73ae5fc067be33bbd4b2c4b
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 12 Nov 2023 18:12:36 +0100

amountToTransfer Pending

Diffstat:
MTalerWallet1/Views/Balances/PendingRowView.swift | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift b/TalerWallet1/Views/Balances/PendingRowView.swift @@ -53,7 +53,6 @@ struct PendingRowContentV: View { /// This view shows a pending transaction row in a currency section struct PendingRowView: View { let amount: Amount - let currencyInfo: CurrencyInfo? let incoming: Bool @Environment(\.sizeCategory) var sizeCategory @@ -124,13 +123,11 @@ func PreviewCurrencyInfo(_ currency: String, digits: Int) -> CurrencyInfo { struct PendingRowView_Previews: PreviewProvider { static var previews: some View { - let testInfo = PreviewCurrencyInfo(TESTCURRENCY, digits: 0) - let demoInfo = PreviewCurrencyInfo(TESTCURRENCY, digits: 2) let test = Amount(currency: TESTCURRENCY, cent: 123) let demo = Amount(currency: DEMOCURRENCY, cent: 123456) List { - PendingRowView(amount: test, currencyInfo: testInfo, incoming: true) - PendingRowView(amount: demo, currencyInfo: demoInfo, incoming: false) + PendingRowView(amount: test, incoming: true) + PendingRowView(amount: demo, incoming: false) } } }