summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-05-03 00:16:03 -0300
committerSebastian <sebasjm@gmail.com>2022-05-03 00:16:03 -0300
commitdc842eab6b7a3b2e891ee89a325ec73e04d3be95 (patch)
tree5df20315b9f50c88598fe4084d739b8610f46bac /packages/taler-wallet-webextension/src/wallet/Transaction.tsx
parent939729004a8f5fecde19e679a0672843c496662f (diff)
downloadwallet-core-dc842eab6b7a3b2e891ee89a325ec73e04d3be95.tar.gz
wallet-core-dc842eab6b7a3b2e891ee89a325ec73e04d3be95.tar.bz2
wallet-core-dc842eab6b7a3b2e891ee89a325ec73e04d3be95.zip
deposit from payto
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/Transaction.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 6f7c208da..bcf6114a1 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -19,6 +19,7 @@ import {
Amounts,
NotificationType,
parsePaytoUri,
+ parsePayUri,
Transaction,
TransactionType,
WithdrawalType,
@@ -32,13 +33,14 @@ import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType.js"
import { ErrorTalerOperation } from "../components/ErrorTalerOperation.js";
import { Loading } from "../components/Loading.js";
import { LoadingError } from "../components/LoadingError.js";
-import { Part } from "../components/Part.js";
+import { Part, PartPayto } from "../components/Part.js";
import {
Button,
ButtonDestructive,
ButtonPrimary,
CenteredDialog,
InfoBox,
+ LargeText,
ListOfProducts,
Overlay,
RowBorderGray,
@@ -428,6 +430,7 @@ export function TransactionView({
Amounts.parseOrThrow(transaction.amountEffective),
Amounts.parseOrThrow(transaction.amountRaw),
).amount;
+ const payto = parsePaytoUri(transaction.targetPaytoUri);
return (
<TransactionTemplate>
<SubTitle>
@@ -456,6 +459,7 @@ export function TransactionView({
text={<Amount value={fee} />}
kind="negative"
/>
+ {payto && <PartPayto big payto={payto} kind="neutral" />}
</TransactionTemplate>
);
}