Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/_components/ContractToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ export default function ContractToken({
return type === AddressType.address || showContractAddress || (type === AddressType.Contract && !name) ? (
address ? (
<div className="address flex items-center">
{contractAddress && (
<EPTooltip mode="dark" title="Contract">
<IconFont className="mr-1 text-base" type="ContractIcon" />
</EPTooltip>
)}
<EPTooltip pointAtCenter={false} title={addressFormat(address || '', showChain)} mode="dark">
<Link
prefetch={false}
Expand All @@ -58,16 +53,18 @@ export default function ContractToken({
</Link>
</EPTooltip>
{showCopy && <MultiChain showChainId={showChainId} address={address} onlyCopy={onlyCopy} chainIds={chainIds} />}
{contractAddress && (
<EPTooltip mode="dark" title="Contract">
<IconFont className="mr-1 text-base" type="ContractIcon" />
</EPTooltip>
)}
<div className="flex items-center"></div>
</div>
) : (
'-'
)
) : name ? (
<div className="address flex w-full truncate">
<EPTooltip mode="dark" title="Contract">
<IconFont className="mr-1 text-base" type="ContractIcon" />
</EPTooltip>
<EPTooltip
title={
<div className="break-all">
Expand All @@ -85,6 +82,9 @@ export default function ContractToken({
</Link>
</EPTooltip>
{showCopy && <MultiChain showChainId={showChainId} onlyCopy={onlyCopy} address={address} chainIds={chainIds} />}
<EPTooltip mode="dark" title="Contract">
<IconFont className="mr-1 text-base" type="ContractIcon" />
</EPTooltip>
</div>
) : (
'-'
Expand Down
Loading