From d84424202dca22fff22cb1d304286f627642187b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 31 Aug 2022 00:20:35 -0300 Subject: p2p tx rendering --- .../src/components/TransactionItem.tsx | 54 +++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src/components') diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx index 8033b3ee3..6dcee6eca 100644 --- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx +++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx @@ -113,8 +113,58 @@ export function TransactionItem(props: { tx: Transaction }): VNode { pending={tx.pending} /> ); - default: - throw Error("unsupported transaction type"); + case TransactionType.PeerPullCredit: + return ( + + ); + case TransactionType.PeerPullDebit: + return ( + + ); + case TransactionType.PeerPushCredit: + return ( + + ); + case TransactionType.PeerPushDebit: + return ( + + ); + default: { + const pe: never = tx; + throw Error(`unsupported transaction type ${pe}`); + } } } -- cgit v1.2.3