Skip to content

Commit c932ca6

Browse files
committed
Hide zero-address as creator address on asset page header
1 parent 84f8043 commit c932ca6

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

apps/dashboard/src/@/components/blocks/wallet-address.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ export function WalletAddress(props: {
5959

6060
// special case for zero address
6161
if (address === ZERO_ADDRESS) {
62-
return <span className="cursor-pointer font-mono">{shortenedAddress}</span>;
62+
return (
63+
<span className={cn("cursor-pointer font-mono", props.className)}>
64+
{shortenedAddress}
65+
</span>
66+
);
6367
}
6468

6569
return (

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExternalLinkIcon, GlobeIcon, Settings2Icon } from "lucide-react";
22
import Link from "next/link";
33
import { useMemo } from "react";
4-
import type { ThirdwebContract } from "thirdweb";
4+
import { type ThirdwebContract, ZERO_ADDRESS } from "thirdweb";
55
import type { ChainMetadata } from "thirdweb/chains";
66
import { Img } from "@/components/blocks/Img";
77
import { Button } from "@/components/ui/button";
@@ -149,7 +149,7 @@ export function ContractHeaderUI(props: {
149149

150150
{/* bottom row */}
151151
<div className="flex flex-row flex-wrap items-center gap-2">
152-
{props.contractCreator && (
152+
{props.contractCreator && props.contractCreator !== ZERO_ADDRESS && (
153153
<ContractCreatorBadge
154154
clientContract={props.clientContract}
155155
contractCreator={props.contractCreator}

apps/nebula/src/@/components/blocks/wallet-address.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ export function WalletAddress(props: {
5959

6060
// special case for zero address
6161
if (address === ZERO_ADDRESS) {
62-
return <span className="cursor-pointer font-mono">{shortenedAddress}</span>;
62+
return (
63+
<span className={cn("cursor-pointer font-mono text-xs", props.className)}>
64+
{shortenedAddress}
65+
</span>
66+
);
6367
}
6468

6569
return (

0 commit comments

Comments
 (0)