diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.tsx')
| -rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw.tsx | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx index 4ebbe11c6..eead51690 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx @@ -38,7 +38,6 @@ import { ButtonWarning, LinkSuccess, WalletAction, - WarningText, } from "../components/styled"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook"; import { amountToString, buildTermsOfServiceState, TermsState } from "../utils"; @@ -98,17 +97,19 @@ export function View({ text={amountToString(Amounts.sub(amount, withdrawalFee).amount)} kind="positive" /> - <Part - title="Chosen amount" - text={amountToString(amount)} - kind="neutral" - /> {Amounts.isNonZero(withdrawalFee) && ( - <Part - title="Exchange fee" - text={amountToString(withdrawalFee)} - kind="negative" - /> + <Fragment> + <Part + title="Chosen amount" + text={amountToString(amount)} + kind="neutral" + /> + <Part + title="Exchange fee" + text={amountToString(withdrawalFee)} + kind="negative" + /> + </Fragment> )} {exchangeBaseUrl && ( <Part title="Exchange" text={exchangeBaseUrl} kind="neutral" big /> @@ -140,13 +141,6 @@ export function View({ )} </section> )} - {terms.status === "notfound" && ( - <section> - <WarningText> - {i18n.str`Exchange doesn't have terms of service`} - </WarningText> - </section> - )} <TermsOfServiceSection reviewed={reviewed} reviewing={reviewing} |
