Commit 9af84c00 authored by tom's avatar tom

fix tests

parent 7bb2d900
import { Flex, Text, Box, Grid } from '@chakra-ui/react'; import { Flex, Text, Grid } from '@chakra-ui/react';
import React from 'react'; import React from 'react';
import type { TokenVerifiedInfo } from 'types/api/token'; import type { TokenVerifiedInfo } from 'types/api/token';
...@@ -70,10 +70,10 @@ const Content = ({ data }: Props) => { ...@@ -70,10 +70,10 @@ const Content = ({ data }: Props) => {
.filter(({ href }) => href); .filter(({ href }) => href);
return ( return (
<Box fontSize="sm"> <Flex fontSize="sm" flexDir="column" rowGap={ 5 }>
{ (description || docs || support) && ( { (description || docs || support) && (
<> <div>
<Text variant="secondary" fontSize="xs" mb={ 5 }>Description and support info</Text> <Text variant="secondary" fontSize="xs">Description and support info</Text>
{ description } { description }
{ (docs || support) && ( { (docs || support) && (
<Flex alignItems="center" flexWrap="wrap" columnGap={ 6 } mt={ 3 }> <Flex alignItems="center" flexWrap="wrap" columnGap={ 6 } mt={ 3 }>
...@@ -81,25 +81,25 @@ const Content = ({ data }: Props) => { ...@@ -81,25 +81,25 @@ const Content = ({ data }: Props) => {
{ docs } { docs }
</Flex> </Flex>
) } ) }
</> </div>
) } ) }
{ socialLinks.length > 0 && ( { socialLinks.length > 0 && (
<> <div>
<Text variant="secondary" fontSize="xs" mb={ 5 }>Links</Text> <Text variant="secondary" fontSize="xs">Links</Text>
<Grid templateColumns={{ base: 'repeat(2, 1fr)', lg: 'repeat(3, 1fr)' }} columnGap={ 4 } rowGap={ 3 } mt={ 3 }> <Grid templateColumns={{ base: 'repeat(2, 1fr)', lg: 'repeat(3, 1fr)' }} columnGap={ 4 } rowGap={ 3 } mt={ 3 }>
{ socialLinks.map((link) => <ServiceLink key={ link.field } { ...link }/>) } { socialLinks.map((link) => <ServiceLink key={ link.field } { ...link }/>) }
</Grid> </Grid>
</> </div>
) } ) }
{ priceTickersLinks.length > 0 && ( { priceTickersLinks.length > 0 && (
<> <div>
<Text variant="secondary" fontSize="xs">Crypto markets</Text> <Text variant="secondary" fontSize="xs">Crypto markets</Text>
<Grid templateColumns={{ base: 'repeat(2, 1fr)', lg: 'repeat(3, 1fr)' }} columnGap={ 4 } rowGap={ 3 } mt={ 3 }> <Grid templateColumns={{ base: 'repeat(2, 1fr)', lg: 'repeat(3, 1fr)' }} columnGap={ 4 } rowGap={ 3 } mt={ 3 }>
{ priceTickersLinks.map((link) => <ServiceLink key={ link.field } { ...link }/>) } { priceTickersLinks.map((link) => <ServiceLink key={ link.field } { ...link }/>) }
</Grid> </Grid>
</> </div>
) } ) }
</Box> </Flex>
); );
}; };
......
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