summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-10-14 19:37:18 -0300
committerSebastian <sebasjm@gmail.com>2021-10-14 19:37:18 -0300
commit1f365d1c425f9c7b190f3682022a9e0817abc71b (patch)
treeb9bf459efd9170b355f12e3ec461f8510913decd /packages/taler-wallet-webextension/src/cta/Withdraw.tsx
parent90f4a4e655347fbb4ce83c765f3b1c8c48d5cd22 (diff)
downloadwallet-core-1f365d1c425f9c7b190f3682022a9e0817abc71b.tar.gz
wallet-core-1f365d1c425f9c7b190f3682022a9e0817abc71b.tar.bz2
wallet-core-1f365d1c425f9c7b190f3682022a9e0817abc71b.zip
applying some comments from belen
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Withdraw.tsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
index ecc0420be..6ef72cbe6 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
@@ -30,7 +30,7 @@ import { ExchangeXmlTos } from '../components/ExchangeToS';
import { LogoHeader } from '../components/LogoHeader';
import { Part } from '../components/Part';
import { SelectList } from '../components/SelectList';
-import { ButtonSuccess, ButtonWarning, LinkSuccess, LinkWarning, TermsOfService, WalletAction } from '../components/styled';
+import { ButtonSuccess, ButtonWarning, LinkSuccess, LinkWarning, TermsOfService, WalletAction, WarningText } from '../components/styled';
import { useAsyncAsHook } from '../hooks/useAsyncAsHook';
import {
acceptWithdrawal, getExchangeWithdrawalInfo, getWithdrawalDetailsForUri, setExchangeTosAccepted, listExchanges, getExchangeTos
@@ -142,6 +142,13 @@ export function View({ details, withdrawalFee, exchangeBaseUrl, knownExchanges,
</LinkSuccess>
</section>
}
+ {terms.status === 'notfound' &&
+ <section>
+ <WarningText>
+ {i18n.str`Exchange doesn't have terms of service`}
+ </WarningText>
+ </section>
+ }
{reviewing &&
<section>
{terms.status !== 'accepted' && terms.value && terms.value.type === 'xml' &&
@@ -216,10 +223,7 @@ export function View({ details, withdrawalFee, exchangeBaseUrl, knownExchanges,
{i18n.str`Confirm withdrawal`}
</ButtonSuccess>
}
- {terms.status === 'notfound' && <Fragment>
- <LinkWarning>
- {i18n.str`Exchange doesn't have terms of service`}
- </LinkWarning>
+ {terms.status === 'notfound' &&
<ButtonWarning
upperCased
disabled={!exchangeBaseUrl}
@@ -227,7 +231,6 @@ export function View({ details, withdrawalFee, exchangeBaseUrl, knownExchanges,
>
{i18n.str`Withdraw anyway`}
</ButtonWarning>
- </Fragment>
}
</section>
</WalletAction>
@@ -257,7 +260,7 @@ export function WithdrawPageWithParsedURI({ uri, uriInfo }: { uri: string, uriIn
amount: withdrawAmount,
tosAcceptedFormat: ['text/xml']
})
- return {tos, info}
+ return { tos, info }
})
if (!detailsHook) {