Improve creator/tx display UI

This commit is contained in:
Willian Mitsuda 2022-02-19 15:07:28 -03:00
parent 22a0bc5888
commit 4b6910d2a1
1 changed files with 9 additions and 7 deletions

View File

@ -131,18 +131,20 @@ const AddressTransactionResults: React.FC<AddressTransactionResultsProps> = ({
<SelectionContext.Provider value={selectionCtx}>
{balance && (
<InfoRow title="Balance">
<FormattedBalance value={balance} /> Ether{" "}
<FormattedBalance value={balance} /> Ether
</InfoRow>
)}
{creator && (
<InfoRow title="Contract creator">
<div className="flex items-baseline space-x-2 -ml-1">
<div className="flex divide-x-2 divide-dotted divide-gray-300">
<div className="flex items-baseline space-x-2 -ml-1 mr-3">
<TransactionAddress address={creator.creator} />
<Copy value={creator.creator} />
<span className="text-gray-400 text-xs">at</span>
<span>tx:</span>
</div>
<div className="flex items-baseline pl-3">
<TransactionLink txHash={creator.hash} />
</div>
</div>
</InfoRow>
)}
<NavBar address={address} page={page} controller={controller} />