From 1f365d1c425f9c7b190f3682022a9e0817abc71b Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 14 Oct 2021 19:37:18 -0300
Subject: applying some comments from belen

---
 packages/taler-wallet-webextension/src/cta/Withdraw.tsx | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 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 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) {
-- 
cgit v1.2.3

