Skip to content

Commit 09284a3

Browse files
spacing changes
1 parent 45105a5 commit 09284a3

1 file changed

Lines changed: 4 additions & 21 deletions

File tree

  • examples/passport/login-with-nextjs/src/app/auth-event-handling

examples/passport/login-with-nextjs/src/app/auth-event-handling/page.tsx

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useEffect, useState, useCallback } from 'react';
44
import { Button, Heading, Stack, Body } from '@biom3/react';
55
import { passportInstance } from '../utils/setupLogoutSilent';
6-
import { passport } from '@imtbl/sdk';
76
import { Provider, ProviderEvent } from '@imtbl/sdk/passport';
87

98

@@ -120,22 +119,6 @@ export default function EventHandlingPage() {
120119
}
121120
};
122121

123-
// Get current chain info
124-
const getChainInfo = async () => {
125-
if (!provider) return;
126-
127-
try {
128-
setLoading(true);
129-
const currentChainId = await provider.request({ method: 'eth_chainId' });
130-
setChainId(currentChainId);
131-
} catch (error) {
132-
console.error('Chain info error:', error);
133-
logEvent('chain_info_error', error);
134-
} finally {
135-
setLoading(false);
136-
}
137-
};
138-
139122
// Manually request accounts
140123
const requestAccounts = async () => {
141124
if (!provider) return;
@@ -192,7 +175,7 @@ export default function EventHandlingPage() {
192175
)}
193176
</Stack>
194177

195-
<Stack direction="row" gap="space.medium">
178+
<Stack direction="row" gap="space.large">
196179
<Button
197180
onClick={handleLogin}
198181
disabled={isLoggedIn || loading}
@@ -208,16 +191,16 @@ export default function EventHandlingPage() {
208191
</Button>
209192
</Stack>
210193

211-
{isLoggedIn && (
212-
194+
{isLoggedIn && (
195+
<Stack direction="row" gap="space.large">
213196
<Button
214197
onClick={requestAccounts}
215198
disabled={loading}
216199
variant="tertiary"
217200
>
218201
Request Accounts
219202
</Button>
220-
203+
</Stack>
221204
)}
222205

223206
<Stack gap="space.medium">

0 commit comments

Comments
 (0)