File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import styled from "@emotion/styled"
3
2
import { graphql , useStaticQuery } from "gatsby"
4
3
import { GatsbyImage } from "gatsby-plugin-image"
5
4
6
5
import OrderedList from "../OrderedList"
7
6
import Translation from "../Translation"
8
7
9
8
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"
21
10
22
11
export interface IProps { }
23
12
@@ -56,10 +45,13 @@ const StakingHowSoloWorks: React.FC<IProps> = () => {
56
45
]
57
46
58
47
return (
59
- < Flex >
48
+ < Center
49
+ flexDirection = { { sm : "column" , md : "row" } }
50
+ justifyContent = "space-between"
51
+ >
60
52
< OrderedList listData = { items } />
61
- < Image image = { getImage ( image ) ! } alt = "" />
62
- </ Flex >
53
+ < Image as = { GatsbyImage } image = { getImage ( image ) ! } alt = "" />
54
+ </ Center >
63
55
)
64
56
}
65
57
You can’t perform that action at this time.
0 commit comments