From e6926dbd17343cd07c23e511e0048efd358ac704 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Wed, 9 Aug 2023 15:29:28 +0200 Subject: [PATCH] fix: fixed the UI not being disabled on transaction (#356) * fix: fixed the UI not being disabled on transaction * fix: borrow modal repay toggle --- src/components/Account/AccountFund.tsx | 2 ++ src/components/Modals/BorrowModal.tsx | 34 +++++++++++-------- .../Modals/FundWithdraw/FundAccount.tsx | 6 ++-- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/components/Account/AccountFund.tsx b/src/components/Account/AccountFund.tsx index 59eaf26b..d9cee9f6 100644 --- a/src/components/Account/AccountFund.tsx +++ b/src/components/Account/AccountFund.tsx @@ -130,6 +130,7 @@ export default function AccountFund() { max={BN(balance)} balances={walletBalances} maxText='Max' + disabled={isFunding} /> ) @@ -142,6 +143,7 @@ export default function AccountFund() { rightIcon={} iconClassName='w-3' onClick={handleSelectAssetsClick} + disabled={isFunding} /> - -
- Receive funds to Wallet - - Your borrowed funds will directly go to your wallet - -
-
- -
+ {!isRepay && ( + <> + +
+ Receive funds to Wallet + + Your borrowed funds will directly go to your wallet + +
+
+ +
+ + )}