Skip to content

Commit 24e37e9

Browse files
authored
Merge pull request #8822 from ImMiguelP/chakra-stakinghowsoloworks
refactor: stakinghowsoloworks to chakra
2 parents d1e49e3 + fa36f27 commit 24e37e9

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/components/Staking/StakingHowSoloWorks.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32
import { graphql, useStaticQuery } from "gatsby"
43
import { GatsbyImage } from "gatsby-plugin-image"
54

65
import OrderedList from "../OrderedList"
76
import Translation from "../Translation"
87

98
import { getImage } from "../../utils/image"
10-
11-
const Flex = styled.div`
12-
display: flex;
13-
align-items: center;
14-
justify-content: space-between;
15-
@media (max-width: ${({ theme }) => theme.breakpoints.m}) {
16-
flex-direction: column;
17-
}
18-
`
19-
20-
const Image = styled(GatsbyImage)``
9+
import { Center, Image } from "@chakra-ui/react"
2110

2211
export interface IProps {}
2312

@@ -56,10 +45,13 @@ const StakingHowSoloWorks: React.FC<IProps> = () => {
5645
]
5746

5847
return (
59-
<Flex>
48+
<Center
49+
flexDirection={{ base: "column", md: "row" }}
50+
justifyContent="space-between"
51+
>
6052
<OrderedList listData={items} />
61-
<Image image={getImage(image)!} alt="" />
62-
</Flex>
53+
<Image as={GatsbyImage} image={getImage(image)!} alt="" />
54+
</Center>
6355
)
6456
}
6557

0 commit comments

Comments
 (0)