Use decorated addresss component on logs section

This commit is contained in:
Willian Mitsuda 2021-07-19 14:47:14 -03:00
parent 00cc2d0d29
commit 2aa6298fdf
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import React from "react";
import ContentFrame from "../ContentFrame";
import AddressOrENSName from "../components/AddressOrENSName";
import DecoratedAddressLink from "../components/DecoratedAddressLink";
import { TransactionData } from "../types";
type LogsProps = {
@ -22,7 +22,12 @@ const Logs: React.FC<LogsProps> = ({ txData }) => (
<div className="grid grid-cols-12 gap-x-3 gap-y-5 text-sm">
<div className="font-bold text-right">Address</div>
<div className="col-span-11">
<AddressOrENSName address={l.address} />
<DecoratedAddressLink
address={l.address}
miner={l.address === txData.miner}
txFrom={l.address === txData.from}
txTo={l.address === txData.to}
/>
</div>
</div>
{l.topics.map((t, i) => (