Skip to content

Commit 48b9fc6

Browse files
author
soheil
committed
using the Flex component for the Glyph
1 parent bc82b28 commit 48b9fc6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/components/Staking/StakingComparison.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import React from "react"
2-
import {
3-
Box,
4-
Flex,
5-
Heading,
6-
Icon,
7-
Text,
8-
useTheme,
9-
VStack,
10-
} from "@chakra-ui/react"
2+
import { Box, Flex, Heading, Icon, Text, useTheme } from "@chakra-ui/react"
113

124
import Link from "../Link"
135
import Translation from "../Translation"
@@ -134,9 +126,15 @@ const StakingComparison: React.FC<IProps> = ({ page, className }) => {
134126
({ title, linkText, to, color, content, glyph, matomo }, idx) => (
135127
<Flex gap={6} direction={{ base: "column", md: "row" }} key={idx}>
136128
{!!glyph && (
137-
<VStack w={12} maxH={12}>
129+
<Flex
130+
direction="column"
131+
justify="flex-start"
132+
align="center"
133+
w={12}
134+
maxH={12}
135+
>
138136
{glyph}
139-
</VStack>
137+
</Flex>
140138
)}
141139
<Box>
142140
<Heading as="h3" fontSize="2xl" color={color} mt={0} mb={2}>

0 commit comments

Comments
 (0)