File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components
nebula/src/@/components/blocks Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 11import { ExternalLinkIcon , GlobeIcon , Settings2Icon } from "lucide-react" ;
22import Link from "next/link" ;
33import { useMemo } from "react" ;
4- import type { ThirdwebContract } from "thirdweb" ;
4+ import { type ThirdwebContract , ZERO_ADDRESS } from "thirdweb" ;
55import type { ChainMetadata } from "thirdweb/chains" ;
66import { Img } from "@/components/blocks/Img" ;
77import { 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 }
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments