gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: add redirect to withdraw


From: gnunet
Subject: [taler-wallet-core] branch master updated: add redirect to withdraw
Date: Sun, 11 Sep 2022 04:53:56 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 50c4cdab add redirect to withdraw
50c4cdab is described below

commit 50c4cdabc168b9297756ea71cd66e81a13c70733
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Sat Sep 10 23:53:48 2022 -0300

    add redirect to withdraw
---
 .../src/cta/Payment/views.tsx                      | 32 ++++++++--------------
 .../src/wallet/Application.tsx                     |  3 ++
 2 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx 
b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
index c799607a..0383960e 100644
--- a/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Payment/views.tsx
@@ -167,14 +167,16 @@ export function BaseView(state: SupportedStates): VNode {
           />
         )}
       </section>
-      <ButtonsSection
-        amount={state.amount}
-        balance={state.balance}
-        payStatus={state.payStatus}
-        uri={state.uri}
-        payHandler={state.status === "ready" ? state.payHandler : undefined}
-        goToWalletManualWithdraw={state.goToWalletManualWithdraw}
-      />
+      {state.status !== "completed" ? (
+        <ButtonsSection
+          amount={state.amount}
+          balance={state.balance}
+          payStatus={state.payStatus}
+          uri={state.uri}
+          payHandler={state.status === "ready" ? state.payHandler : undefined}
+          goToWalletManualWithdraw={state.goToWalletManualWithdraw}
+        />
+      ) : undefined}
       <section>
         <Link upperCased onClick={state.cancel}>
           <i18n.Translate>Cancel</i18n.Translate>
@@ -433,19 +435,7 @@ export function ButtonsSection({
     );
   }
 
-  // if (state.status === "completed") {
-  //   if (state.payResult.type === ConfirmPayResultType.Pending) {
-  //     return (
-  //       <section>
-  //         <div>
-  //           <p>
-  //             <i18n.Translate>Processing</i18n.Translate>...
-  //           </p>
-  //         </div>
-  //       </section>
-  //     );
-  //   }
-  // }
+  const error: never = payStatus;
 
   return <Fragment />;
 }
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx 
b/packages/taler-wallet-webextension/src/wallet/Application.tsx
index eb2a7cc8..c7e69964 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -288,6 +288,9 @@ export function Application(): VNode {
               <Route
                 path={Pages.ctaInvoicePay}
                 component={InvoicePayPage}
+                goToWalletManualWithdraw={(amount?: string) =>
+                  redirectTo(Pages.ctaWithdrawManual({ amount }))
+                }
                 onClose={() => redirectTo(Pages.balance)}
               />
               <Route

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]