@@ -56,7 +56,7 @@ export function WalletModal({
56
56
57
57
const modal = modalRef . current ;
58
58
const focusableElements = modal . querySelectorAll < HTMLElement > (
59
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' ,
59
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
60
60
) ;
61
61
62
62
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: TODO: Refactor
@@ -101,9 +101,7 @@ export function WalletModal({
101
101
console . error ( 'Coinbase Wallet connection error:' , error ) ;
102
102
if ( onError ) {
103
103
onError (
104
- error instanceof Error
105
- ? error
106
- : new Error ( 'Failed to connect wallet' ) ,
104
+ error instanceof Error ? error : new Error ( 'Failed to connect wallet' )
107
105
) ;
108
106
}
109
107
}
@@ -122,17 +120,15 @@ export function WalletModal({
122
120
console . error ( 'WalletConnect connection error:' , error ) ;
123
121
if ( onError ) {
124
122
onError (
125
- error instanceof Error
126
- ? error
127
- : new Error ( 'Failed to connect wallet' ) ,
123
+ error instanceof Error ? error : new Error ( 'Failed to connect wallet' )
128
124
) ;
129
125
}
130
126
}
131
127
} , [ connect , onClose , onError ] ) ;
132
128
133
129
const handleLinkKeyDown = (
134
130
event : React . KeyboardEvent < HTMLAnchorElement > ,
135
- url : string ,
131
+ url : string
136
132
) => {
137
133
if ( event . key === 'Enter' ) {
138
134
event . preventDefault ( ) ;
@@ -150,7 +146,7 @@ export function WalletModal({
150
146
'fixed inset-0 z-50 flex items-center justify-center' ,
151
147
'bg-black/70 transition-opacity duration-200' ,
152
148
isOpen ? 'opacity-100' : 'opacity-0' ,
153
- className ,
149
+ className
154
150
) }
155
151
onClick = { onClose }
156
152
onKeyDown = { ( e ) => e . key === 'Enter' && onClose ( ) }
@@ -169,7 +165,7 @@ export function WalletModal({
169
165
'relative' ,
170
166
'-translate-x-1/2 -translate-y-1/2 fixed top-1/2 left-1/2' ,
171
167
'transition-opacity duration-200' ,
172
- isOpen ? 'opacity-100' : 'opacity-0' ,
168
+ isOpen ? 'opacity-100' : 'opacity-0'
173
169
) }
174
170
onClick = { ( e ) => e . stopPropagation ( ) }
175
171
onKeyDown = { ( e ) => e . key === 'Enter' && e . stopPropagation ( ) }
@@ -182,14 +178,14 @@ export function WalletModal({
182
178
className = { cn (
183
179
'absolute top-4 right-4' ,
184
180
'flex items-center justify-center' ,
185
- 'h-3 w-3' ,
181
+ 'h-3 w-3'
186
182
) }
187
183
aria-label = "Close modal"
188
184
>
189
185
< div
190
186
className = { cn (
191
187
'relative h-full w-full transition-colors' ,
192
- '[&>svg>path]:hover:fill-[var(--ock-icon-color-foreground-muted)]' ,
188
+ '[&>svg>path]:hover:fill-[var(--ock-icon-color-foreground-muted)]'
193
189
) }
194
190
>
195
191
{ closeSvg }
@@ -224,7 +220,7 @@ export function WalletModal({
224
220
pressable . alternate ,
225
221
color . foreground ,
226
222
'h-10 w-[275px] px-4 py-2.5' ,
227
- 'flex items-center justify-between text-left' ,
223
+ 'flex items-center justify-between text-left'
228
224
) }
229
225
>
230
226
Sign up
@@ -241,7 +237,7 @@ export function WalletModal({
241
237
background . default ,
242
238
color . foregroundMuted ,
243
239
text . legal ,
244
- 'px-2' ,
240
+ 'px-2'
245
241
) }
246
242
>
247
243
or continue with an existing wallet
@@ -260,7 +256,7 @@ export function WalletModal({
260
256
pressable . alternate ,
261
257
color . foreground ,
262
258
'h-10 w-[275px] px-4 py-2.5' ,
263
- 'flex items-center justify-between text-left' ,
259
+ 'flex items-center justify-between text-left'
264
260
) }
265
261
>
266
262
Coinbase Wallet
@@ -278,7 +274,7 @@ export function WalletModal({
278
274
pressable . alternate ,
279
275
color . foreground ,
280
276
'flex h-[40px] w-[275px] px-4 py-2.5' ,
281
- 'items-center justify-between text-left' ,
277
+ 'items-center justify-between text-left'
282
278
) }
283
279
>
284
280
Other wallets
@@ -291,7 +287,7 @@ export function WalletModal({
291
287
color . foregroundMuted ,
292
288
text . legal ,
293
289
'flex flex-col items-center justify-center gap-1 px-4' ,
294
- 'mt-4 w-[275px] text-center leading-3' ,
290
+ 'mt-4 w-[275px] text-center leading-3'
295
291
) }
296
292
>
297
293
< span className = "font-normal text-[10px] leading-[13px]" >
0 commit comments