From 8c3e57293422d670b93c2f2a19cfc47f3aecc7b1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 23 Feb 2022 15:44:14 -0300 Subject: we are force to use i18n.Translate, otherwise pogen won't find the tag --- .../taler-wallet-webextension/src/cta/Withdraw.tsx | 36 +++++++++++++--------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.tsx') diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx index 7d36a6084..7c9745ddc 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx @@ -119,13 +119,15 @@ export function View({

- Digital cash withdrawal + Digital cash withdrawal

{withdrawError && ( Could not finish the withdrawal operation + + Could not finish the withdrawal operation + } error={withdrawError.operationError} /> @@ -133,19 +135,19 @@ export function View({
Total to withdraw} + title={Total to withdraw} text={amountToString(Amounts.sub(amount, withdrawalFee).amount)} kind="positive" /> {Amounts.isNonZero(withdrawalFee) && ( Chosen amount} + title={Chosen amount} text={amountToString(amount)} kind="neutral" /> Exchange fee} + title={Exchange fee} text={amountToString(withdrawalFee)} kind="negative" /> @@ -153,7 +155,7 @@ export function View({ )} {exchangeBaseUrl && ( Exchange} + title={Exchange} text={exchangeBaseUrl} kind="neutral" big @@ -166,7 +168,7 @@ export function View({
Known exchanges} + label={Known exchanges} list={exchanges} value={nextExchange} name="switchingExchange" @@ -183,15 +185,15 @@ export function View({ }} > {nextExchange === undefined ? ( - Cancel exchange selection + Cancel exchange selection ) : ( - Confirm exchange selection + Confirm exchange selection )} ) : ( setSwitchingExchange(true)}> - Switch exchange + Switch exchange )}
@@ -210,7 +212,7 @@ export function View({ disabled={!exchangeBaseUrl || confirmDisabled} onClick={doWithdrawAndCheckError} > - Confirm withdrawal + Confirm withdrawal )} {terms.status === "notfound" && ( @@ -219,7 +221,7 @@ export function View({ disabled={!exchangeBaseUrl} onClick={doWithdrawAndCheckError} > - Withdraw anyway + Withdraw anyway )} @@ -282,7 +284,9 @@ export function WithdrawPageWithParsedURI({ if (detailsHook.hasError) { return ( Could not load the withdrawal details} + title={ + Could not load the withdrawal details + } error={detailsHook} /> ); @@ -337,7 +341,7 @@ export function WithdrawPage({ talerWithdrawUri }: Props): VNode { if (!talerWithdrawUri) { return ( - missing withdraw uri + missing withdraw uri ); } @@ -347,7 +351,9 @@ export function WithdrawPage({ talerWithdrawUri }: Props): VNode { if (uriInfoHook.hasError) { return ( Could not get the info from the URI} + title={ + Could not get the info from the URI + } error={uriInfoHook} /> ); -- cgit v1.2.3