From a5f052d69c6457ad0289fdcb56398ea1fabedc2a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Aug 2022 11:32:07 -0300 Subject: using CTA for manual withdrawal --- .../src/wallet/Application.tsx | 25 +++++++++++++--------- 1 file changed, 15 insertions(+), 10 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 316a1c0e5..b39a7936b 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -37,7 +37,10 @@ import { import { PaymentPage } from "../cta/Payment/index.js"; import { RefundPage } from "../cta/Refund/index.js"; import { TipPage } from "../cta/Tip/index.js"; -import { WithdrawPage } from "../cta/Withdraw/index.js"; +import { + WithdrawPageFromParams, + WithdrawPageFromURI, +} from "../cta/Withdraw/index.js"; import { DepositPage as DepositPageCTA } from "../cta/Deposit/index.js"; import { Pages, WalletNavBar } from "../NavigationBar.js"; import { DeveloperPage } from "./DeveloperPage.js"; @@ -151,7 +154,10 @@ export function Application(): VNode { path={Pages.receiveCash.pattern} component={DestinationSelectionGetCash} goToWalletManualWithdraw={(amount?: string) => - redirectTo(Pages.balanceManualWithdraw({ amount })) + redirectTo(Pages.ctaWithdrawManual({ amount })) + } + goToWalletWalletInvoice={(amount?: string) => + redirectTo(Pages.ctaWithdrawManual({ amount })) } /> - redirectTo(Pages.balance)} - /> - - redirectTo(Pages.balanceManualWithdraw({ amount })) + redirectTo(Pages.ctaWithdrawManual({ amount })) } cancel={() => redirectTo(Pages.balance)} /> @@ -253,7 +253,12 @@ export function Application(): VNode { /> redirectTo(Pages.balance)} + /> + redirectTo(Pages.balance)} />