@@ -2,7 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react"
2
2
3
3
import { Center , Flex } from "../ui/flex"
4
4
5
- import FilterBurgerIcon from "./wallets/filter-burger.svg"
6
5
import HighlightIcon from "./highlight.svg"
7
6
import HighlightDarkIcon from "./highlight-dark.svg"
8
7
import {
@@ -13,7 +12,6 @@ import {
13
12
TrophyIcon ,
14
13
} from "./quiz"
15
14
import {
16
- DecentralizationEthGlyphIcon ,
17
15
DecentralizationGlyphIcon ,
18
16
DownloadGlyphIcon ,
19
17
EarthGlyphIcon ,
@@ -101,105 +99,101 @@ const meta = {
101
99
export default meta
102
100
103
101
const iconsDefinitions = [
104
- CorrectIcon ,
105
- IncorrectIcon ,
106
- GreenTickIcon ,
107
- StarConfettiIcon ,
108
- TrophyIcon ,
109
- DecentralizationGlyphIcon ,
110
- DecentralizationEthGlyphIcon ,
111
- DownloadGlyphIcon ,
112
- EarthGlyphIcon ,
113
- HardwareGlyphIcon ,
114
- MegaphoneGlyphIcon ,
115
- PrivacyGlyphIcon ,
116
- SovereigntyGlyphIcon ,
117
- VoteGlyphIcon ,
118
- AbyssGlyphIcon ,
119
- AllnodesGlyphIcon ,
120
- AnkrGlyphIcon ,
121
- AuditedIcon ,
122
- AvadoGlyphIcon ,
123
- BattleTestedIcon ,
124
- BedrockGlyphIcon ,
125
- BugBountyIcon ,
126
- CautionProductGlyph ,
127
- ChainLaboGlyphIcon ,
128
- ConsensysStakingGlyphIcon ,
129
- StakingDappnodeGlyphIcon ,
130
- DefaultOpenSourceGlyphIcon ,
131
- DockerGlyphIcon ,
132
- EconomicalIcon ,
133
- EthpoolGlyphIcon ,
134
- EverstakeGlyphIcon ,
135
- FigmentGlyphIcon ,
136
- GreenCheckProductGlyph ,
137
- P2PGlyphIcon ,
138
- KilnGlyphIcon ,
139
- LaunchnodesGlyphIcon ,
140
- LidoGlyphIcon ,
141
- LiquidityTokenIcon ,
142
- MultiClientIcon ,
143
- OpenSourceStakingIcon ,
144
- PermissionlessIcon ,
145
- RocketPoolGlyphIcon ,
146
- RockXGlyphIcon ,
147
- SelfCustodyIcon ,
148
- SenseiNodeGlyphIcon ,
149
- StafiGlyphIcon ,
150
- StakefishGlyphIcon ,
151
- StakewiseGlyphIcon ,
152
- StakingGlyphCentralizedIcon ,
153
- StakingGlyphCloudIcon ,
154
- StakingGlyphCPUIcon ,
155
- StakingGlyphEtherCircleIcon ,
156
- StakingGlyphTokenWalletIcon ,
157
- StereumGlyphIcon ,
158
- SquidGlyphIcon ,
159
- TrustlessIcon ,
160
- UnknownProductGlyph ,
161
- WagyuGlyphIcon ,
162
- WarningProductGlyph ,
163
- BrowserIcon ,
164
- BuyCryptoIcon ,
165
- ConnectDappsIcon ,
166
- DesktopIcon ,
167
- ENSSupportIcon ,
168
- ERC20SupportIcon ,
169
- FilterBurgerIcon ,
170
- GasFeeCustomizationIcon ,
171
- HardwareIcon ,
172
- HardwareSupportIcon ,
173
- Layer2Icon ,
174
- MobileIcon ,
175
- MultisigIcon ,
176
- NFTSupportIcon ,
177
- NonCustodialIcon ,
178
- OpenSourceWalletIcon ,
179
- RPCImportingIcon ,
180
- SocialRecoverIcon ,
181
- StakingIcon ,
182
- SwapIcon ,
183
- WithdrawCryptoIcon ,
184
- EthHomeIcon ,
185
- FeedbackThumbsUpIcon ,
186
- HighlightDarkIcon ,
187
- HighlightIcon ,
102
+ { label : "AbyssGlyphIcon" , Icon : AbyssGlyphIcon } ,
103
+ { label : "AllnodesGlyphIcon" , Icon : AllnodesGlyphIcon } ,
104
+ { label : "AnkrGlyphIcon" , Icon : AnkrGlyphIcon } ,
105
+ { label : "AuditedIcon" , Icon : AuditedIcon } ,
106
+ { label : "AvadoGlyphIcon" , Icon : AvadoGlyphIcon } ,
107
+ { label : "BattleTestedIcon" , Icon : BattleTestedIcon } ,
108
+ { label : "BedrockGlyphIcon" , Icon : BedrockGlyphIcon } ,
109
+ { label : "BrowserIcon" , Icon : BrowserIcon } ,
110
+ { label : "BugBountyIcon" , Icon : BugBountyIcon } ,
111
+ { label : "BuyCryptoIcon" , Icon : BuyCryptoIcon } ,
112
+ { label : "CautionProductGlyph" , Icon : CautionProductGlyph } ,
113
+ { label : "ChainLaboGlyphIcon" , Icon : ChainLaboGlyphIcon } ,
114
+ { label : "ConnectDappsIcon" , Icon : ConnectDappsIcon } ,
115
+ { label : "ConsensysStakingGlyphIcon" , Icon : ConsensysStakingGlyphIcon } ,
116
+ { label : "CorrectIcon" , Icon : CorrectIcon } ,
117
+ { label : "DecentralizationGlyphIcon" , Icon : DecentralizationGlyphIcon } ,
118
+ { label : "DefaultOpenSourceGlyphIcon" , Icon : DefaultOpenSourceGlyphIcon } ,
119
+ { label : "DesktopIcon" , Icon : DesktopIcon } ,
120
+ { label : "DockerGlyphIcon" , Icon : DockerGlyphIcon } ,
121
+ { label : "DownloadGlyphIcon" , Icon : DownloadGlyphIcon } ,
122
+ { label : "EarthGlyphIcon" , Icon : EarthGlyphIcon } ,
123
+ { label : "EconomicalIcon" , Icon : EconomicalIcon } ,
124
+ { label : "ENSSupportIcon" , Icon : ENSSupportIcon } ,
125
+ { label : "ERC20SupportIcon" , Icon : ERC20SupportIcon } ,
126
+ { label : "EthHomeIcon" , Icon : EthHomeIcon } ,
127
+ { label : "EthpoolGlyphIcon" , Icon : EthpoolGlyphIcon } ,
128
+ { label : "EverstakeGlyphIcon" , Icon : EverstakeGlyphIcon } ,
129
+ { label : "FeedbackThumbsUpIcon" , Icon : FeedbackThumbsUpIcon } ,
130
+ { label : "FigmentGlyphIcon" , Icon : FigmentGlyphIcon } ,
131
+ { label : "GasFeeCustomizationIcon" , Icon : GasFeeCustomizationIcon } ,
132
+ { label : "GreenCheckProductGlyph" , Icon : GreenCheckProductGlyph } ,
133
+ { label : "GreenTickIcon" , Icon : GreenTickIcon } ,
134
+ { label : "HardwareGlyphIcon" , Icon : HardwareGlyphIcon } ,
135
+ { label : "HardwareIcon" , Icon : HardwareIcon } ,
136
+ { label : "HardwareSupportIcon" , Icon : HardwareSupportIcon } ,
137
+ { label : "HighlightDarkIcon" , Icon : HighlightDarkIcon } ,
138
+ { label : "HighlightIcon" , Icon : HighlightIcon } ,
139
+ { label : "IncorrectIcon" , Icon : IncorrectIcon } ,
140
+ { label : "KilnGlyphIcon" , Icon : KilnGlyphIcon } ,
141
+ { label : "LaunchnodesGlyphIcon" , Icon : LaunchnodesGlyphIcon } ,
142
+ { label : "Layer2Icon" , Icon : Layer2Icon } ,
143
+ { label : "LidoGlyphIcon" , Icon : LidoGlyphIcon } ,
144
+ { label : "LiquidityTokenIcon" , Icon : LiquidityTokenIcon } ,
145
+ { label : "MegaphoneGlyphIcon" , Icon : MegaphoneGlyphIcon } ,
146
+ { label : "MobileIcon" , Icon : MobileIcon } ,
147
+ { label : "MultiClientIcon" , Icon : MultiClientIcon } ,
148
+ { label : "MultisigIcon" , Icon : MultisigIcon } ,
149
+ { label : "NFTSupportIcon" , Icon : NFTSupportIcon } ,
150
+ { label : "NonCustodialIcon" , Icon : NonCustodialIcon } ,
151
+ { label : "OpenSourceStakingIcon" , Icon : OpenSourceStakingIcon } ,
152
+ { label : "OpenSourceWalletIcon" , Icon : OpenSourceWalletIcon } ,
153
+ { label : "P2PGlyphIcon" , Icon : P2PGlyphIcon } ,
154
+ { label : "PermissionlessIcon" , Icon : PermissionlessIcon } ,
155
+ { label : "PrivacyGlyphIcon" , Icon : PrivacyGlyphIcon } ,
156
+ { label : "RocketPoolGlyphIcon" , Icon : RocketPoolGlyphIcon } ,
157
+ { label : "RockXGlyphIcon" , Icon : RockXGlyphIcon } ,
158
+ { label : "RPCImportingIcon" , Icon : RPCImportingIcon } ,
159
+ { label : "SelfCustodyIcon" , Icon : SelfCustodyIcon } ,
160
+ { label : "SenseiNodeGlyphIcon" , Icon : SenseiNodeGlyphIcon } ,
161
+ { label : "SocialRecoverIcon" , Icon : SocialRecoverIcon } ,
162
+ { label : "SovereigntyGlyphIcon" , Icon : SovereigntyGlyphIcon } ,
163
+ { label : "SquidGlyphIcon" , Icon : SquidGlyphIcon } ,
164
+ { label : "StafiGlyphIcon" , Icon : StafiGlyphIcon } ,
165
+ { label : "StakefishGlyphIcon" , Icon : StakefishGlyphIcon } ,
166
+ { label : "StakewiseGlyphIcon" , Icon : StakewiseGlyphIcon } ,
167
+ { label : "StakingDappnodeGlyphIcon" , Icon : StakingDappnodeGlyphIcon } ,
168
+ { label : "StakingGlyphCentralizedIcon" , Icon : StakingGlyphCentralizedIcon } ,
169
+ { label : "StakingGlyphCloudIcon" , Icon : StakingGlyphCloudIcon } ,
170
+ { label : "StakingGlyphCPUIcon" , Icon : StakingGlyphCPUIcon } ,
171
+ { label : "StakingGlyphEtherCircleIcon" , Icon : StakingGlyphEtherCircleIcon } ,
172
+ { label : "StakingGlyphTokenWalletIcon" , Icon : StakingGlyphTokenWalletIcon } ,
173
+ { label : "StakingIcon" , Icon : StakingIcon } ,
174
+ { label : "StarConfettiIcon" , Icon : StarConfettiIcon } ,
175
+ { label : "StereumGlyphIcon" , Icon : StereumGlyphIcon } ,
176
+ { label : "SwapIcon" , Icon : SwapIcon } ,
177
+ { label : "TrophyIcon" , Icon : TrophyIcon } ,
178
+ { label : "TrustlessIcon" , Icon : TrustlessIcon } ,
179
+ { label : "UnknownProductGlyph" , Icon : UnknownProductGlyph } ,
180
+ { label : "VoteGlyphIcon" , Icon : VoteGlyphIcon } ,
181
+ { label : "WagyuGlyphIcon" , Icon : WagyuGlyphIcon } ,
182
+ { label : "WarningProductGlyph" , Icon : WarningProductGlyph } ,
183
+ { label : "WithdrawCryptoIcon" , Icon : WithdrawCryptoIcon } ,
188
184
]
189
185
190
- iconsDefinitions . sort ( ( a , b ) =>
191
- ( a ?. displayName || "" ) > ( b ?. displayName || "" ) ? 1 : - 1
192
- )
193
- const items = iconsDefinitions . map ( ( IconDef , idx ) => {
186
+ iconsDefinitions . sort ( ( a , b ) => ( ( a ?. label || "" ) > ( b ?. label || "" ) ? 1 : - 1 ) )
187
+ const items = iconsDefinitions . map ( ( { Icon, label } , idx ) => {
194
188
return (
195
189
< Flex
196
190
key = { idx }
197
191
className = "flex-col gap-4 border border-background-highlight p-4"
198
192
>
199
193
< Center >
200
- < IconDef className = "size-[50px]" />
194
+ < Icon className = "size-[50px]" />
201
195
</ Center >
202
- < Center > { IconDef . displayName } </ Center >
196
+ < Center > { label } </ Center >
203
197
</ Flex >
204
198
)
205
199
} )
0 commit comments