Skip to content

Commit

Permalink
chore: Update Identity Demo in the playground (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer authored Oct 24, 2024
1 parent b675cb9 commit 8c26a6a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Binary file modified playground/nextjs-app-router/bun.lockb
Binary file not shown.
20 changes: 14 additions & 6 deletions playground/nextjs-app-router/components/demo/Identity.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {
Address,
Avatar,
Badge,
Identity,
Name,
useAddress,
Expand Down Expand Up @@ -48,18 +50,24 @@ export default function IdentityDemo() {
Default Chain
</h2>
<div className="flex items-center space-x-4">
<Identity>
<Avatar address={address} />
<Name address={address} />
<Identity address={address}>
<Avatar />
<Name>
<Badge />
</Name>
<Address />
</Identity>
</div>
</div>
<div className="space-y-2">
<h2 className="font-medium text-gray-500 text-sm">Base Chain</h2>
<div className="flex items-center space-x-4">
<Identity>
<Avatar address={address} chain={base} />
<Name address={address} chain={base} />
<Identity address={address}>
<Avatar chain={base} />
<Name chain={base}>
<Badge />
</Name>
<Address />
</Identity>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lint": "next lint"
},
"dependencies": {
"@coinbase/onchainkit": "^0.34.0",
"@coinbase/onchainkit": "^0.35.0",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
Expand Down

0 comments on commit 8c26a6a

Please sign in to comment.