From cdc8e9afdfb93bd8a90d1e6cf0ea9aa20159e43a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 15 Aug 2022 21:18:39 -0300 Subject: destination ui --- .../taler-wallet-webextension/src/wallet/Application.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/Application.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index a13094646..6c08ecb71 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -57,6 +57,7 @@ import { DestinationSelectionGetCash, DestinationSelectionSendCash, } from "./DestinationSelection.js"; +import { Amounts } from "@gnu-taler/taler-util"; export function Application(): VNode { const [globalNotification, setGlobalNotification] = useState< @@ -130,10 +131,14 @@ export function Application(): VNode { path={Pages.balanceHistory.pattern} component={HistoryPage} goToWalletDeposit={(currency: string) => - redirectTo(Pages.sendCash({ currency })) + redirectTo(Pages.sendCash({ amount: `${currency}:0` })) } goToWalletManualWithdraw={(currency?: string) => - redirectTo(Pages.receiveCash({ currency })) + redirectTo( + Pages.receiveCash({ + amount: !currency ? undefined : `${currency}:0`, + }), + ) } /> + redirectTo(Pages.balanceManualWithdraw({ amount })) + } /> - redirectTo(Pages.balanceManualWithdraw({ currency })) + goToWalletManualWithdraw={(amount?: string) => + redirectTo(Pages.balanceManualWithdraw({ amount })) } cancel={() => redirectTo(Pages.balance)} /> -- cgit v1.2.3