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"
@@ -179,30 +186,24 @@ iconsDefinitions.sort((a, b) =>
179
186
( a ?. displayName || "" ) > ( b ?. displayName || "" ) ? 1 : - 1
180
187
)
181
188
const items = iconsDefinitions . map ( ( IconDef ) => (
182
- < Box
189
+ < Flex
183
190
key = { IconDef . displayName }
191
+ direction = "column"
192
+ gap = { 4 }
193
+ p = { 4 }
184
194
border = "1px"
185
195
borderStyle = "solid"
186
- borderColor = "border"
187
- p = { 1 }
196
+ borderColor = "background.highlight"
188
197
>
189
198
< Center >
190
- < IconDef />
199
+ < IconDef w = "50px" h = "50px" />
191
200
</ Center >
192
201
< Center > { IconDef . displayName } </ Center >
193
- </ Box >
202
+ </ Flex >
194
203
) )
195
204
196
205
export const IconsList : StoryObj < typeof VStack > = {
197
206
render : ( ) => {
198
- return (
199
- < VStack
200
- divider = { < StackDivider borderColor = "gray.200" /> }
201
- spacing = { 4 }
202
- align = "stretch"
203
- >
204
- { items }
205
- </ VStack >
206
- )
207
+ return < SimpleGrid columns = { [ 2 , 2 , 3 , 5 ] } > { items } </ SimpleGrid >
207
208
} ,
208
209
}
You can’t perform that action at this time.
0 commit comments