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