Skip to content

Commit

Permalink
fix address table
Browse files Browse the repository at this point in the history
  • Loading branch information
eallend committed Feb 13, 2025
1 parent 2881073 commit 58c68ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ui/addresses/AddressesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const AddressesTable = ({ items, totalSupply, pageStartIndex, top, isLoading }:
<Thead top={ top }>
<Tr>
<Th width="64px">Rank</Th>
<Th width={ hasPercentage ? '50%' : '60%' }>Address</Th>
<Th width={ hasPercentage ? '20%' : '25%' } isNumeric>{ `Balance ${ currencyUnits.ether }` }</Th>
{ hasPercentage && <Th width="15%" isNumeric>Percentage</Th> }
<Th width="15%" isNumeric>Txn count</Th>
<Th width="50%">Address</Th>
<Th width={ hasPercentage ? '20%' : '25%' } textAlign="center">{ `Balance ${ currencyUnits.ether }` }</Th>
{ hasPercentage && <Th width="15%" textAlign="center">Percentage</Th> }
<Th width="15%" textAlign="center">Txn count</Th>
</Tr>
</Thead>
<Tbody>
Expand Down
6 changes: 3 additions & 3 deletions ui/addresses/AddressesTableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ const AddressesTableItem = ({
)) : null }
</Flex>
</Td>
<Td isNumeric>
<Td textAlign="center">
<Skeleton isLoaded={ !isLoading } display="inline-block" maxW="100%">
<Text lineHeight="24px" as="span">{ addressBalanceChunks[0] + (addressBalanceChunks[1] ? '.' : '') }</Text>
<Text lineHeight="24px" variant="secondary" as="span">{ addressBalanceChunks[1] }</Text>
</Skeleton>
</Td>
{ hasPercentage && (
<Td isNumeric>
<Td textAlign="center">
<Text lineHeight="24px">{ addressBalance.div(totalSupply).multipliedBy(100).dp(8).toFormat() + '%' }</Text>
</Td>
) }
<Td isNumeric>
<Td textAlign="center">
<Skeleton isLoaded={ !isLoading } display="inline-block" lineHeight="24px">
{ Number(item.transaction_count).toLocaleString() }
</Skeleton>
Expand Down

0 comments on commit 58c68ce

Please sign in to comment.