Skip to content

Commit

Permalink
Refactor transaction hash display in
Browse files Browse the repository at this point in the history
BatchHashDetailsComponent
  • Loading branch information
Jennievon committed May 24, 2024
1 parent b320bd4 commit 547ec3f
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,15 @@ export function BatchHashDetailsComponent({
<KeyValueItem
label="Transaction Hashes"
value={
<div className="flex items-center space-x-2">
<ul>
{batchDetails?.TxHashes?.map((txHash, index) => (
<Link
key={index}
href={`/tx/${txHash}`}
className="text-primary"
>
{txHash}
</Link>
<li key={index} className="text-sm">
<Link href={`/tx/${txHash}`} className="text-primary">
<TruncatedAddress address={txHash} />
</Link>
</li>
))}
</div>
</ul>
}
isLastItem
/>
Expand Down

0 comments on commit 547ec3f

Please sign in to comment.