diff --git a/src/TokenTransferItem.tsx b/src/TokenTransferItem.tsx index e7c65c4..d28a538 100644 --- a/src/TokenTransferItem.tsx +++ b/src/TokenTransferItem.tsx @@ -1,9 +1,8 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; -import AddressHighlighter from "./components/AddressHighlighter"; +import TransactionAddress from "./components/TransactionAddress"; import ValueHighlighter from "./components/ValueHighlighter"; -import DecoratedAddressLink from "./components/DecoratedAddressLink"; import FormattedBalance from "./components/FormattedBalance"; import { AddressContext, @@ -34,27 +33,19 @@ const TokenTransferItem: React.FC = ({
From - - - +
To - - - +
For @@ -66,12 +57,10 @@ const TokenTransferItem: React.FC = ({ /> - - - +
diff --git a/src/components/TransactionAddress.tsx b/src/components/TransactionAddress.tsx index 8db3df4..1595ef0 100644 --- a/src/components/TransactionAddress.tsx +++ b/src/components/TransactionAddress.tsx @@ -3,14 +3,17 @@ import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { ResolvedAddresses } from "../api/address-resolver"; import { useSelectedTransaction } from "../useSelectedTransaction"; +import { AddressContext } from "../types"; type TransactionAddressProps = { address: string; + addressCtx?: AddressContext | undefined; resolvedAddresses: ResolvedAddresses | undefined; }; const TransactionAddress: React.FC = ({ address, + addressCtx, resolvedAddresses, }) => { const txData = useSelectedTransaction(); @@ -21,6 +24,7 @@ const TransactionAddress: React.FC = ({