From d84424202dca22fff22cb1d304286f627642187b Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 31 Aug 2022 00:20:35 -0300
Subject: p2p tx rendering

---
 .../src/wallet/Application.tsx                     | 26 +++++++++++++++++-----
 1 file changed, 20 insertions(+), 6 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 caed45d33..253d5fba7 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -60,8 +60,10 @@ import {
   DestinationSelectionSendCash,
 } from "./DestinationSelection.js";
 import { ExchangeSelectionPage } from "./ExchangeSelection/index.js";
-import { InvoicePage } from "./Invoice/index.js";
-import { SendPage } from "./Send/index.js";
+import { TransferCreatePage } from "../cta/TransferCreate/index.js";
+import { InvoiceCreatePage } from "../cta/InvoiceCreate/index.js";
+import { TransferPickupPage } from "../cta/TransferPickup/index.js";
+import { InvoicePayPage } from "../cta/InvoicePay/index.js";
 
 export function Application(): VNode {
   const [globalNotification, setGlobalNotification] = useState<
@@ -153,7 +155,7 @@ export function Application(): VNode {
                   redirectTo(Pages.balanceDeposit({ amount }))
                 }
                 goToWalletWalletSend={(amount: string) =>
-                  redirectTo(Pages.send({ amount }))
+                  redirectTo(Pages.ctaTransferCreate({ amount }))
                 }
               />
               <Route
@@ -163,11 +165,9 @@ export function Application(): VNode {
                   redirectTo(Pages.ctaWithdrawManual({ amount }))
                 }
                 goToWalletWalletInvoice={(amount?: string) =>
-                  redirectTo(Pages.invoice({ amount }))
+                  redirectTo(Pages.ctaInvoiceCreate({ amount }))
                 }
               />
-              <Route path={Pages.invoice.pattern} component={InvoicePage} />
-              <Route path={Pages.send.pattern} component={SendPage} />
 
               <Route
                 path={Pages.balanceTransaction.pattern}
@@ -275,6 +275,20 @@ export function Application(): VNode {
                 component={DepositPageCTA}
                 cancel={() => redirectTo(Pages.balance)}
               />
+              <Route
+                path={Pages.ctaInvoiceCreate.pattern}
+                component={InvoiceCreatePage}
+              />
+              <Route
+                path={Pages.ctaTransferCreate.pattern}
+                component={TransferCreatePage}
+              />
+
+              <Route path={Pages.ctaInvoicePay} component={InvoicePayPage} />
+              <Route
+                path={Pages.ctaTransferPickup}
+                component={TransferPickupPage}
+              />
 
               {/**
                * NOT FOUND
-- 
cgit v1.2.3

