From a2ef2e391a8f030857d0f9cd56c6157cffb33659 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2023 14:46:03 +0200 Subject: wallet-core: remove legacy non-DD37 tx status fields --- .../src/components/TransactionItem.tsx | 23 ++++++++++++++++++++++ .../src/wallet/History.stories.tsx | 1 - .../src/wallet/Transaction.tsx | 5 ++++- 3 files changed, 27 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src') diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx index dc11c4b7e..124729349 100644 --- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx +++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx @@ -69,6 +69,29 @@ export function TransactionItem(props: { tx: Transaction }): VNode { } /> ); + case TransactionType.InternalWithdrawal: + return ( + + ); case TransactionType.Payment: return ( ({ amountRaw: "USD:10", amountEffective: "USD:9", - pending: false, txState: { major: TransactionMajorState.Done, }, diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index f4c50a8d5..9541cc33f 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -398,7 +398,10 @@ export function TransactionView({ const raw = Amounts.parseOrThrow(transaction.amountRaw); const effective = Amounts.parseOrThrow(transaction.amountEffective); - if (transaction.type === TransactionType.Withdrawal) { + if ( + transaction.type === TransactionType.Withdrawal || + transaction.type === TransactionType.InternalWithdrawal + ) { return (