From 6610a0b9d7eb9fbec591f052c960f780732bf0e5 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 29 Aug 2022 13:23:22 -0300
Subject: add senderWire to the withdrawal group again, group payto to avoid
 duplication

---
 .../taler-wallet-webextension/src/wallet/Application.tsx  | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 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 b39a7936b..caed45d33 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -48,7 +48,6 @@ import { BackupPage } from "./BackupPage.js";
 import { DepositPage } from "./DepositPage.js";
 import { ExchangeAddPage } from "./ExchangeAddPage.js";
 import { HistoryPage } from "./History.js";
-import { ManualWithdrawPage } from "./ManualWithdrawPage.js";
 import { ProviderAddPage } from "./ProviderAddPage.js";
 import { ProviderDetailPage } from "./ProviderDetailPage.js";
 import { SettingsPage } from "./Settings.js";
@@ -60,8 +59,9 @@ import {
   DestinationSelectionGetCash,
   DestinationSelectionSendCash,
 } from "./DestinationSelection.js";
-import { Amounts } from "@gnu-taler/taler-util";
 import { ExchangeSelectionPage } from "./ExchangeSelection/index.js";
+import { InvoicePage } from "./Invoice/index.js";
+import { SendPage } from "./Send/index.js";
 
 export function Application(): VNode {
   const [globalNotification, setGlobalNotification] = useState<
@@ -149,6 +149,12 @@ export function Application(): VNode {
               <Route
                 path={Pages.sendCash.pattern}
                 component={DestinationSelectionSendCash}
+                goToWalletBankDeposit={(amount: string) =>
+                  redirectTo(Pages.balanceDeposit({ amount }))
+                }
+                goToWalletWalletSend={(amount: string) =>
+                  redirectTo(Pages.send({ amount }))
+                }
               />
               <Route
                 path={Pages.receiveCash.pattern}
@@ -157,9 +163,12 @@ export function Application(): VNode {
                   redirectTo(Pages.ctaWithdrawManual({ amount }))
                 }
                 goToWalletWalletInvoice={(amount?: string) =>
-                  redirectTo(Pages.ctaWithdrawManual({ amount }))
+                  redirectTo(Pages.invoice({ amount }))
                 }
               />
+              <Route path={Pages.invoice.pattern} component={InvoicePage} />
+              <Route path={Pages.send.pattern} component={SendPage} />
+
               <Route
                 path={Pages.balanceTransaction.pattern}
                 component={TransactionPage}
-- 
cgit v1.2.3

