From e759684fd0658b4a3ba241744424ceda11bd500b Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 31 Aug 2022 11:46:39 -0300
Subject: invoice and transfer details

---
 .../taler-wallet-webextension/src/wallet/Application.tsx     | 12 +++++++++---
 1 file changed, 9 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 253d5fba7..eb2a7cc80 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -258,7 +258,7 @@ export function Application(): VNode {
               <Route
                 path={Pages.ctaTips}
                 component={TipPage}
-                cancel={() => redirectTo(Pages.balance)}
+                onCancel={() => redirectTo(Pages.balance)}
               />
               <Route
                 path={Pages.ctaWithdraw}
@@ -278,16 +278,22 @@ export function Application(): VNode {
               <Route
                 path={Pages.ctaInvoiceCreate.pattern}
                 component={InvoiceCreatePage}
+                onClose={() => redirectTo(Pages.balance)}
               />
               <Route
                 path={Pages.ctaTransferCreate.pattern}
                 component={TransferCreatePage}
+                onClose={() => redirectTo(Pages.balance)}
+              />
+              <Route
+                path={Pages.ctaInvoicePay}
+                component={InvoicePayPage}
+                onClose={() => redirectTo(Pages.balance)}
               />
-
-              <Route path={Pages.ctaInvoicePay} component={InvoicePayPage} />
               <Route
                 path={Pages.ctaTransferPickup}
                 component={TransferPickupPage}
+                onClose={() => redirectTo(Pages.balance)}
               />
 
               {/**
-- 
cgit v1.2.3

