File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import axios from "axios"
5
5
import { kebabCase } from "lodash"
6
6
import { AreaChart , ResponsiveContainer , Area , XAxis } from "recharts"
7
7
8
- import { Grid , Icon } from "@chakra-ui/react"
8
+ import { Grid , Icon , VStack , Box as ChakraBox } from "@chakra-ui/react"
9
9
import { MdInfoOutline } from "react-icons/md"
10
10
11
11
import Translation from "./Translation"
@@ -157,22 +157,22 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
157
157
) : isLoading ? (
158
158
< StatLoadingMessage />
159
159
) : (
160
- // @TODO : Convert StatRow to Chakra
161
- < StatRow >
162
- < span >
160
+ < VStack >
161
+ < ChakraBox >
163
162
{ state . value } { " " }
164
163
< Tooltip content = { tooltipContent ( metric ) } >
165
- { /* @TODO : continue migrate Icon
166
-
167
- https://github.com/chakra-ui/chakra-ui/issues/363
168
- */ }
169
164
< Icon
170
165
as = { MdInfoOutline }
171
- sx = { { "svg:hover" : { fill : "text" } } }
166
+ width = "24px"
167
+ height = "24px"
168
+ _hover = { { fill : "primary" } }
169
+ _active = { { fill : "primary" } }
170
+ _focus = { { fill : "primary" } }
171
+ mr = "0.5rem"
172
172
> </ Icon >
173
173
</ Tooltip >
174
- </ span >
175
- </ StatRow >
174
+ </ ChakraBox >
175
+ </ VStack >
176
176
)
177
177
178
178
// Returns either 90 or 30-day data range depending on `range` selection
You can’t perform that action at this time.
0 commit comments