Skip to content

Commit

Permalink
Add unused ensImage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Aug 28, 2024
1 parent 229d15b commit c2e77d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/components/AccountAvatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { addressToJazzIconSeed } from "./addressToJazzIconSeed";
type AccountAvatarProps = {
address: string;
size: number;
ensImage: string | null | undefined;
};

export const AccountAvatar: FC<AccountAvatarProps> = ({ address, size }) => {
Expand Down
6 changes: 5 additions & 1 deletion packages/nextjs/components/scaffold-eth/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }:
return (
<div className="flex items-center">
<div className="flex-shrink-0">
<AccountAvatar address={address} size={(blockieSizeMap[size] * 24) / blockieSizeMap["base"]} />
<AccountAvatar
address={address}
ensImage={ensAvatar}
size={(blockieSizeMap[size] * 24) / blockieSizeMap["base"]}
/>
</div>
{disableAddressLink ? (
<span className={`ml-1.5 text-${size} font-normal`}>{displayAddress}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const AddressInfoDropdown = ({
<details ref={dropdownRef} className="dropdown dropdown-end leading-3">
<summary tabIndex={0} className="btn btn-secondary btn-sm pl-0 pr-2 shadow-md dropdown-toggle gap-0 !h-auto">
<div className="hidden sm:block">
<AccountAvatar address={address} size={30} />
<AccountAvatar address={address} size={30} ensImage={ensAvatar} />
</div>
<span className="ml-2 mr-1 ">{displayName}</span>
<ChevronDownIcon className="h-6 w-4 ml-2 sm:ml-0" />
Expand Down

0 comments on commit c2e77d9

Please sign in to comment.