From 656fcae88c183ebb2c0d61c94ea763b110cae918 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Nov 2023 14:48:35 -0300 Subject: show kyc requirement --- .../src/wallet/Application.tsx | 40 +++++++++++++--------- .../src/wallet/Transaction.tsx | 2 +- 2 files changed, 24 insertions(+), 18 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet') diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index 4c4ba1855..7bd4195ee 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -90,6 +90,10 @@ export function Application(): VNode { async function redirectToTxInfo(tid: string): Promise { redirectTo(Pages.balanceTransaction({ tid })); } + function redirectToURL(str: string): void { + window.location.href = new URL(str).href + } + return ( @@ -97,7 +101,7 @@ export function Application(): VNode { ( - + )} @@ -106,7 +110,7 @@ export function Application(): VNode { ( - + { redirectTo( @@ -123,7 +127,7 @@ export function Application(): VNode { ( - + )} @@ -131,7 +135,7 @@ export function Application(): VNode { ( - + )} @@ -142,7 +146,7 @@ export function Application(): VNode { ( - + redirectTo(Pages.balance)} /> )} @@ -151,7 +155,7 @@ export function Application(): VNode { ( - + @@ -171,7 +175,7 @@ export function Application(): VNode { ( - + ( - + ( - + @@ -220,7 +224,7 @@ export function Application(): VNode { ( - + { @@ -237,7 +241,7 @@ export function Application(): VNode { ( - + redirectTo(Pages.backupProviderAdd)} /> @@ -247,7 +251,7 @@ export function Application(): VNode { ( - + @@ -264,7 +268,7 @@ export function Application(): VNode { ( - + redirectTo(`${Pages.ctaPay}?talerPayUri=${uri}`) @@ -284,7 +288,7 @@ export function Application(): VNode { ( - + )} @@ -595,10 +599,12 @@ function WalletTemplate({ path, children, goToTransaction, + goToURL, }: { path?: WalletNavBarOptions; children: ComponentChildren; goToTransaction?: (id: string) => Promise; + goToURL: (url: string) => void; }): VNode { const online = useIsOnline(); const { i18n } = useTranslationContext(); @@ -611,9 +617,9 @@ function WalletTemplate({ )} - {goToTransaction ? ( - - ) : undefined} + diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 076110522..fcedc12f0 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -258,7 +258,7 @@ function TransactionTemplate({
Follow this link to the{` `} - KYC verifier + KYC verifier
) : ( -- cgit v1.2.3