From 50c4cdabc168b9297756ea71cd66e81a13c70733 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 10 Sep 2022 23:53:48 -0300 Subject: [PATCH] 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 c799607ad..0383960ed 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 { /> )} - + {state.status !== "completed" ? ( + + ) : undefined}
Cancel @@ -433,19 +435,7 @@ export function ButtonsSection({ ); } - // if (state.status === "completed") { - // if (state.payResult.type === ConfirmPayResultType.Pending) { - // return ( - //
- //
- //

- // Processing... - //

- //
- //
- // ); - // } - // } + const error: never = payStatus; return ; } diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index eb2a7cc80..c7e69964b 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 { + redirectTo(Pages.ctaWithdrawManual({ amount })) + } onClose={() => redirectTo(Pages.balance)} />