Skip to content

Commit

Permalink
updated identity
Browse files Browse the repository at this point in the history
  • Loading branch information
fakepixels committed Sep 30, 2024
1 parent acf5d74 commit 3ed4b24
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/components/IdentityWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
import {
Avatar,
Name,
useAddress,
useAvatar,
useName,
Name
} from '@coinbase/onchainkit/identity';
import { useEffect } from 'react';
import { base } from 'viem/chains';
import { useAccount } from 'wagmi';

export default function IdentityWrapper() {
const { address } = useAccount();
const { data: addressBasename } = useAddress({ address, chain: base });
const { data: avatarBasename } = useAvatar({ address, chain: base });
const { data: basename } = useName({ address, chain: base });

// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
}, [
address,
addressBasename,
avatarBasename,
basename,
]);

return (
<div className="mx-auto max-w-2xl p-4">
{address && (
Expand Down

0 comments on commit 3ed4b24

Please sign in to comment.