Commit b0507a2d authored by isstuev's avatar isstuev

token transfers fix

parent 84ed9b9b
import { Flex, Skeleton } from '@chakra-ui/react'; import { Grid, Flex, Skeleton } from '@chakra-ui/react';
import React from 'react'; import React from 'react';
import type { TokenTransfer } from 'types/api/tokenTransfer'; import type { TokenTransfer } from 'types/api/tokenTransfer';
...@@ -72,16 +72,31 @@ const TokenTransferListItem = ({ ...@@ -72,16 +72,31 @@ const TokenTransferListItem = ({
/> />
</Flex> </Flex>
{ valueStr && (token.type === 'ERC-20' || token.type === 'ERC-1155') && ( { valueStr && (token.type === 'ERC-20' || token.type === 'ERC-1155') && (
<Flex columnGap={ 2 } w="100%"> <Grid gap={ 2 } templateColumns={ `1fr auto auto${ usd ? ' auto' : '' }` }>
<Skeleton isLoaded={ !isLoading } flexShrink={ 0 } fontWeight={ 500 }> <Skeleton isLoaded={ !isLoading } flexShrink={ 0 } fontWeight={ 500 }>
Value Value
</Skeleton> </Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary"> <Skeleton
isLoaded={ !isLoading }
color="text_secondary"
wordBreak="break-all"
overflow="hidden"
flexGrow={ 1 }
>
<span>{ valueStr }</span> <span>{ valueStr }</span>
</Skeleton> </Skeleton>
{ token.symbol && <TruncatedValue isLoading={ isLoading } value={ token.symbol }/> } { token.symbol && <TruncatedValue isLoading={ isLoading } value={ token.symbol }/> }
{ usd && <Skeleton isLoaded={ !isLoading } color="text_secondary"><span>(${ usd })</span></Skeleton> } { usd && (
</Flex> <Skeleton
isLoaded={ !isLoading }
color="text_secondary"
wordBreak="break-all"
overflow="hidden"
>
<span>(${ usd })</span>
</Skeleton>
) }
</Grid>
) } ) }
{ 'token_id' in total && (token.type === 'ERC-721' || token.type === 'ERC-1155') && ( { 'token_id' in total && (token.type === 'ERC-721' || token.type === 'ERC-1155') && (
<NftEntity <NftEntity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment