diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:57:26 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:58:49 -0300 |
commit | 0bfd4523b3408d9c841a1f25fd9ec86e81d6dd8f (patch) | |
tree | f453943d92fefbd04b9222a5f25f2c9563c239f3 /packages/taler-wallet-webextension/src/cta/Withdraw.tsx | |
parent | f07436aa4910114a514235fb17879411dae0a555 (diff) | |
download | wallet-core-0bfd4523b3408d9c841a1f25fd9ec86e81d6dd8f.tar.xz |
adding tos information in settings and return to manual withdraw when adding an exchange
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} |