Commit 46b0eaad authored by isstuev's avatar isstuev

fix home skeleton

parent 6015bb72
...@@ -14,7 +14,6 @@ import appConfig from 'configs/app/config'; ...@@ -14,7 +14,6 @@ import appConfig from 'configs/app/config';
import rightArrowIcon from 'icons/arrows/east.svg'; import rightArrowIcon from 'icons/arrows/east.svg';
import transactionIcon from 'icons/transactions.svg'; import transactionIcon from 'icons/transactions.svg';
import getValueWithUnit from 'lib/getValueWithUnit'; import getValueWithUnit from 'lib/getValueWithUnit';
import useIsMobile from 'lib/hooks/useIsMobile';
import useTimeAgoIncrement from 'lib/hooks/useTimeAgoIncrement'; import useTimeAgoIncrement from 'lib/hooks/useTimeAgoIncrement';
import Address from 'ui/shared/address/Address'; import Address from 'ui/shared/address/Address';
import AddressIcon from 'ui/shared/address/AddressIcon'; import AddressIcon from 'ui/shared/address/AddressIcon';
...@@ -33,16 +32,15 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -33,16 +32,15 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
const dataTo = tx.to ? tx.to : tx.created_contract; const dataTo = tx.to ? tx.to : tx.created_contract;
const timeAgo = useTimeAgoIncrement(tx.timestamp || '0', true); const timeAgo = useTimeAgoIncrement(tx.timestamp || '0', true);
const isMobile = useIsMobile();
if (isMobile) {
return ( return (
<>
<Box <Box
width="100%" width="100%"
borderTop="1px solid" borderTop="1px solid"
borderColor="divider" borderColor="divider"
py={ 4 } py={ 4 }
_last={{ borderBottom: '1px solid', borderColor: 'divider' }} _last={{ borderBottom: '1px solid', borderColor: 'divider' }}
display={{ base: 'block', lg: 'none' }}
> >
<Flex justifyContent="space-between"> <Flex justifyContent="space-between">
<HStack> <HStack>
...@@ -127,10 +125,6 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -127,10 +125,6 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
<Text as="span" variant="secondary">{ getValueWithUnit(tx.fee.value).dp(5).toFormat() }</Text> <Text as="span" variant="secondary">{ getValueWithUnit(tx.fee.value).dp(5).toFormat() }</Text>
</Skeleton> </Skeleton>
</Box> </Box>
);
}
return (
<Box <Box
width="100%" width="100%"
minW="700px" minW="700px"
...@@ -138,6 +132,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -138,6 +132,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
borderColor="divider" borderColor="divider"
p={ 4 } p={ 4 }
_last={{ borderBottom: '1px solid', borderColor: 'divider' }} _last={{ borderBottom: '1px solid', borderColor: 'divider' }}
display={{ base: 'none', lg: 'block' }}
> >
<Grid width="100%" gridTemplateColumns="3fr 2fr 150px" gridGap={ 8 }> <Grid width="100%" gridTemplateColumns="3fr 2fr 150px" gridGap={ 8 }>
<Flex overflow="hidden" w="100%"> <Flex overflow="hidden" w="100%">
...@@ -224,6 +219,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => { ...@@ -224,6 +219,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
</Box> </Box>
</Grid> </Grid>
</Box> </Box>
</>
); );
}; };
......
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