File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 1
- import { Box , Center , StackDivider , VStack } from "@chakra-ui/react"
1
+ import {
2
+ Box ,
3
+ Center ,
4
+ Flex ,
5
+ SimpleGrid ,
6
+ StackDivider ,
7
+ VStack ,
8
+ } from "@chakra-ui/react"
2
9
import { Meta , StoryObj } from "@storybook/react"
3
10
import * as React from "react"
4
11
import { EthHomeIcon } from "./EthHomeIcon"
@@ -180,30 +187,24 @@ iconsDefinitions.sort((a, b) =>
180
187
( a ?. displayName || "" ) > ( b ?. displayName || "" ) ? 1 : - 1
181
188
)
182
189
const items = iconsDefinitions . map ( ( IconDef ) => (
183
- < Box
190
+ < Flex
184
191
key = { IconDef . displayName }
192
+ direction = "column"
193
+ gap = { 4 }
194
+ p = { 4 }
185
195
border = "1px"
186
196
borderStyle = "solid"
187
- borderColor = "border"
188
- p = { 1 }
197
+ borderColor = "background.highlight"
189
198
>
190
199
< Center >
191
- < IconDef />
200
+ < IconDef w = "50px" h = "50px" />
192
201
</ Center >
193
202
< Center > { IconDef . displayName } </ Center >
194
- </ Box >
203
+ </ Flex >
195
204
) )
196
205
197
206
export const Icons : StoryObj < typeof VStack > = {
198
207
render : ( ) => {
199
- return (
200
- < VStack
201
- divider = { < StackDivider borderColor = "gray.200" /> }
202
- spacing = { 4 }
203
- align = "stretch"
204
- >
205
- { items }
206
- </ VStack >
207
- )
208
+ return < SimpleGrid columns = { [ 2 , 2 , 3 , 5 ] } > { items } </ SimpleGrid >
208
209
} ,
209
210
}
You can’t perform that action at this time.
0 commit comments