Skip to content

Commit 85d573c

Browse files
authored
style: new ds token and vertically
1 parent 281155e commit 85d573c

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

src/components/StablecoinsTable.tsx

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,15 @@ const StablecoinsTable = ({
4747
}
4848

4949
return (
50-
<Table
51-
variant="unstyled"
52-
my={8}
53-
bg="background.base"
54-
mb={8}
55-
minW="720px"
56-
>
57-
<Thead bg="background.highlight" color="text200">
58-
<Tr mb="1px">
50+
<Table variant="unstyled" my={8} bg="background.base" mb={8} minW="720px">
51+
<Thead bg="background.highlight" color="body.medium">
52+
<Tr>
5953
{columns.map((column, idx) => (
6054
<Th
6155
key={idx}
62-
py={5}
63-
fontWeight="bold"
56+
fontWeight="bold"
6457
fontSize="md"
58+
verticalAlign="inherit"
6559
letterSpacing="normal"
6660
>
6761
{column}
@@ -90,25 +84,21 @@ const StablecoinsTable = ({
9084
color="text"
9185
_hover={{
9286
textDecoration: "none",
93-
bg: "background.highlight"
87+
bg: "background.highlight",
9488
}}
9589
_focus={{
9690
bg: "background.base",
9791
color: "body.base",
9892
}}
9993
>
100-
<Td>
101-
<Flex align="center" pt={2}>
94+
<Td verticalAlign="middle">
95+
<Flex>
10296
{image && <Image src={image} alt="" me={4} boxSize={6} />}
10397
<>{name}</>
10498
</Flex>
10599
</Td>
106-
<Td>
107-
<Flex align="center" pt={2}>{marketCap}</Flex>
108-
</Td>
109-
<Td>
110-
<Flex align="center" pt={2}>{stablecoinsType[type]}</Flex>
111-
</Td>
100+
<Td verticalAlign="middle">{marketCap}</Td>
101+
<Td verticalAlign="middle">{stablecoinsType[type]}</Td>
112102
{url && (
113103
<Td textAlign="end">
114104
<ButtonLink to={url} size="sm">

0 commit comments

Comments
 (0)