From f43de77294e86df4bb023cd19afe6327ace5e83c Mon Sep 17 00:00:00 2001 From: Cafe137 <77121044+Cafe137@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:51:51 +0200 Subject: [PATCH] fix: display account wallet partially while loading (#420) --- .../account/chequebook/AccountChequebook.tsx | 45 +++++++++++-------- src/pages/account/wallet/AccountWallet.tsx | 32 +++++++------ 2 files changed, 44 insertions(+), 33 deletions(-) diff --git a/src/pages/account/chequebook/AccountChequebook.tsx b/src/pages/account/chequebook/AccountChequebook.tsx index 28f4ae0..275a381 100644 --- a/src/pages/account/chequebook/AccountChequebook.tsx +++ b/src/pages/account/chequebook/AccountChequebook.tsx @@ -22,30 +22,37 @@ export function AccountChequebook(): ReactElement { if (status.all === CheckState.ERROR) return + const showChequebook = chequebookBalance?.totalBalance !== undefined + return ( <>
- - - - - - - - - - + {showChequebook && ( + + + + + + + + + + + )} - } - function onCheckTransactions() { window.open(`https://blockscout.com/xdai/mainnet/address/${nodeAddresses?.ethereum}/transactions`, '_blank') } @@ -47,15 +43,23 @@ export function AccountWallet(): ReactElement { - - - - - - - - - + {balance && nodeAddresses ? ( + <> + + + + + + + + + + + ) : ( + + + + )} Check transactions on Blockscout