Skip to content

Commit 3ef7586

Browse files
committed
asdf
1 parent bf76e52 commit 3ef7586

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

src/.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ONCHAINKIT_WALLETCONNECT_PROJECT_ID=c652d0148879353d7e965d7f6f361e59

src/wallet/components/WalletModal.tsx

+13-17
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function WalletModal({
5656

5757
const modal = modalRef.current;
5858
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"])'
6060
);
6161

6262
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: TODO: Refactor
@@ -101,9 +101,7 @@ export function WalletModal({
101101
console.error('Coinbase Wallet connection error:', error);
102102
if (onError) {
103103
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')
107105
);
108106
}
109107
}
@@ -122,17 +120,15 @@ export function WalletModal({
122120
console.error('WalletConnect connection error:', error);
123121
if (onError) {
124122
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')
128124
);
129125
}
130126
}
131127
}, [connect, onClose, onError]);
132128

133129
const handleLinkKeyDown = (
134130
event: React.KeyboardEvent<HTMLAnchorElement>,
135-
url: string,
131+
url: string
136132
) => {
137133
if (event.key === 'Enter') {
138134
event.preventDefault();
@@ -150,7 +146,7 @@ export function WalletModal({
150146
'fixed inset-0 z-50 flex items-center justify-center',
151147
'bg-black/70 transition-opacity duration-200',
152148
isOpen ? 'opacity-100' : 'opacity-0',
153-
className,
149+
className
154150
)}
155151
onClick={onClose}
156152
onKeyDown={(e) => e.key === 'Enter' && onClose()}
@@ -169,7 +165,7 @@ export function WalletModal({
169165
'relative',
170166
'-translate-x-1/2 -translate-y-1/2 fixed top-1/2 left-1/2',
171167
'transition-opacity duration-200',
172-
isOpen ? 'opacity-100' : 'opacity-0',
168+
isOpen ? 'opacity-100' : 'opacity-0'
173169
)}
174170
onClick={(e) => e.stopPropagation()}
175171
onKeyDown={(e) => e.key === 'Enter' && e.stopPropagation()}
@@ -182,14 +178,14 @@ export function WalletModal({
182178
className={cn(
183179
'absolute top-4 right-4',
184180
'flex items-center justify-center',
185-
'h-3 w-3',
181+
'h-3 w-3'
186182
)}
187183
aria-label="Close modal"
188184
>
189185
<div
190186
className={cn(
191187
'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)]'
193189
)}
194190
>
195191
{closeSvg}
@@ -224,7 +220,7 @@ export function WalletModal({
224220
pressable.alternate,
225221
color.foreground,
226222
'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'
228224
)}
229225
>
230226
Sign up
@@ -241,7 +237,7 @@ export function WalletModal({
241237
background.default,
242238
color.foregroundMuted,
243239
text.legal,
244-
'px-2',
240+
'px-2'
245241
)}
246242
>
247243
or continue with an existing wallet
@@ -260,7 +256,7 @@ export function WalletModal({
260256
pressable.alternate,
261257
color.foreground,
262258
'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'
264260
)}
265261
>
266262
Coinbase Wallet
@@ -278,7 +274,7 @@ export function WalletModal({
278274
pressable.alternate,
279275
color.foreground,
280276
'flex h-[40px] w-[275px] px-4 py-2.5',
281-
'items-center justify-between text-left',
277+
'items-center justify-between text-left'
282278
)}
283279
>
284280
Other wallets
@@ -291,7 +287,7 @@ export function WalletModal({
291287
color.foregroundMuted,
292288
text.legal,
293289
'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'
295291
)}
296292
>
297293
<span className="font-normal text-[10px] leading-[13px]">

0 commit comments

Comments
 (0)