@@ -4,7 +4,7 @@ import axios from "axios"
4
4
import { kebabCase } from "lodash"
5
5
import { AreaChart , ResponsiveContainer , Area , XAxis } from "recharts"
6
6
7
- import { VStack , Grid , Box , Icon , Button , Text } from "@chakra-ui/react"
7
+ import { VStack , Grid , Box , Icon , Button , Text , Flex } from "@chakra-ui/react"
8
8
import { MdInfoOutline } from "react-icons/md"
9
9
10
10
import Translation from "./Translation"
@@ -61,8 +61,7 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
61
61
< Tooltip content = { tooltipContent ( metric ) } >
62
62
< Icon
63
63
as = { MdInfoOutline }
64
- width = "24px"
65
- height = "24px"
64
+ boxSize = { 6 }
66
65
fill = "text"
67
66
mr = "0.5rem"
68
67
_hover = { { fill : "primary" } }
@@ -127,12 +126,10 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
127
126
)
128
127
129
128
return (
130
- < Box
129
+ < Flex
131
130
position = "relative"
132
131
color = "text"
133
132
height = "20rem"
134
- background = { "" }
135
- display = "flex"
136
133
flexDirection = "column"
137
134
justifyContent = "space-between"
138
135
alignItems = "flex-start"
@@ -145,18 +142,11 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
145
142
base : "-1px" ,
146
143
lg : "0" ,
147
144
} }
148
- padding = { {
149
- base : "1rem" ,
150
- lg : "1.5rem" ,
151
- } }
152
- paddingTop = { {
153
- base : "2rem" ,
154
- lg : "0" ,
155
- } }
145
+ padding = { { base : "2rem 1rem 1rem" , lg : "1.5rem" } }
156
146
>
157
147
< div >
158
148
< Text
159
- fontSize = "1.25rem "
149
+ fontSize = "xl "
160
150
mb = "0.5rem"
161
151
color = "text"
162
152
textTransform = "uppercase"
@@ -211,7 +201,7 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
211
201
>
212
202
{ value }
213
203
</ Text >
214
- </ Box >
204
+ </ Flex >
215
205
)
216
206
}
217
207
0 commit comments