Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Nov 25, 2024
1 parent 7f8a302 commit 8c1234b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/sample-privy-next-app/src/app/pages/homepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@vechain/dapp-kit-react-privy";

const HomePage = (): ReactElement => {
const { isConnected, connectedAddress, isPrivyLoading, logout } =
const { isConnected, connectedAddress, logout } =
useWalletAdapter();

const {
Expand All @@ -27,6 +27,12 @@ const HomePage = (): ReactElement => {
<Button onClick={onLoginOpen}>Connect</Button>
)}

{isConnected && (
<div>
<p>Connected Address: {connectedAddress}</p>
</div>
)}

<ConnectModal
isOpen={isLoginOpen}
onClose={onLoginClose}
Expand Down

0 comments on commit 8c1234b

Please sign in to comment.