diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-15 21:18:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-15 21:18:39 -0300 |
commit | cdc8e9afdfb93bd8a90d1e6cf0ea9aa20159e43a (patch) | |
tree | e41339241843847f5f4573f08c138149f8dca995 /packages/taler-wallet-webextension/src/wallet/Application.tsx | |
parent | 004b1544f394ee9dbbd0687d98933932b017f979 (diff) | |
download | wallet-core-cdc8e9afdfb93bd8a90d1e6cf0ea9aa20159e43a.tar.xz |
destination ui
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Application.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Application.tsx | 16 |
1 files changed, 12 insertions, 4 deletions
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`, + }), + ) } /> <Route @@ -143,6 +148,9 @@ export function Application(): VNode { <Route path={Pages.receiveCash.pattern} component={DestinationSelectionGetCash} + goToWalletManualWithdraw={(amount?: string) => + redirectTo(Pages.balanceManualWithdraw({ amount })) + } /> <Route path={Pages.balanceTransaction.pattern} @@ -226,8 +234,8 @@ export function Application(): VNode { <Route path={Pages.ctaPay} component={PaymentPage} - goToWalletManualWithdraw={(currency?: string) => - redirectTo(Pages.balanceManualWithdraw({ currency })) + goToWalletManualWithdraw={(amount?: string) => + redirectTo(Pages.balanceManualWithdraw({ amount })) } cancel={() => redirectTo(Pages.balance)} /> |