Move into subpackage
This commit is contained in:
parent
f612e4791a
commit
1b127b84a2
|
@ -35,7 +35,7 @@ import ExternalLink from "../components/ExternalLink";
|
||||||
import RelativePosition from "../components/RelativePosition";
|
import RelativePosition from "../components/RelativePosition";
|
||||||
import PercentagePosition from "../components/PercentagePosition";
|
import PercentagePosition from "../components/PercentagePosition";
|
||||||
import ModeTab from "../components/ModeTab";
|
import ModeTab from "../components/ModeTab";
|
||||||
import DecodedParamsTable from "./DecodedParamsTable";
|
import DecodedParamsTable from "./decoder/DecodedParamsTable";
|
||||||
import { rawInputTo4Bytes, use4BytesFull } from "../use4Bytes";
|
import { rawInputTo4Bytes, use4BytesFull } from "../use4Bytes";
|
||||||
|
|
||||||
type DetailsProps = {
|
type DetailsProps = {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import AddressHighlighter from "../components/AddressHighlighter";
|
||||||
import DecoratedAddressLink from "../components/DecoratedAddressLink";
|
import DecoratedAddressLink from "../components/DecoratedAddressLink";
|
||||||
import Copy from "../components/Copy";
|
import Copy from "../components/Copy";
|
||||||
import ModeTab from "../components/ModeTab";
|
import ModeTab from "../components/ModeTab";
|
||||||
import DecodedParamsTable from "./DecodedParamsTable";
|
import DecodedParamsTable from "./decoder/DecodedParamsTable";
|
||||||
import DecodedLogSignature from "./DecodedLogSignature";
|
import DecodedLogSignature from "./decoder/DecodedLogSignature";
|
||||||
import { TransactionData } from "../types";
|
import { TransactionData } from "../types";
|
||||||
|
|
||||||
type LogEntryProps = {
|
type LogEntryProps = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
import AddressHighlighter from "../components/AddressHighlighter";
|
|
||||||
import DecoratedAddressLink from "../components/DecoratedAddressLink";
|
|
||||||
import Copy from "../components/Copy";
|
|
||||||
import { ParamType } from "@ethersproject/abi";
|
import { ParamType } from "@ethersproject/abi";
|
||||||
import { TransactionData } from "../types";
|
import AddressHighlighter from "../../components/AddressHighlighter";
|
||||||
|
import DecoratedAddressLink from "../../components/DecoratedAddressLink";
|
||||||
|
import Copy from "../../components/Copy";
|
||||||
|
import { TransactionData } from "../../types";
|
||||||
|
|
||||||
type DecodedParamRowProps = {
|
type DecodedParamRowProps = {
|
||||||
prefix?: ReactNode;
|
prefix?: ReactNode;
|
||||||
|
@ -28,7 +28,8 @@ const DecodedParamRow: React.FC<DecodedParamRowProps> = ({
|
||||||
<td className="col-span-3 pl-1">
|
<td className="col-span-3 pl-1">
|
||||||
{prefix && <span className="text-gray-300">{prefix}</span>}
|
{prefix && <span className="text-gray-300">{prefix}</span>}
|
||||||
{arrayElem !== undefined ? (
|
{arrayElem !== undefined ? (
|
||||||
<span className="text-gray-400">{" "}
|
<span className="text-gray-400">
|
||||||
|
{" "}
|
||||||
[<span className="text-black">{arrayElem}</span>]
|
[<span className="text-black">{arrayElem}</span>]
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ParamType, Result } from "@ethersproject/abi";
|
import { ParamType, Result } from "@ethersproject/abi";
|
||||||
import DecodedParamRow from "./DecodedParamRow";
|
import DecodedParamRow from "./DecodedParamRow";
|
||||||
import { TransactionData } from "../types";
|
import { TransactionData } from "../../types";
|
||||||
|
|
||||||
type DecodedParamsTableProps = {
|
type DecodedParamsTableProps = {
|
||||||
args: Result;
|
args: Result;
|
||||||
|
@ -27,7 +27,9 @@ const DecodedParamsTable: React.FC<DecodedParamsTableProps> = ({
|
||||||
</tr>
|
</tr>
|
||||||
{!hasParamNames && (
|
{!hasParamNames && (
|
||||||
<tr className="grid grid-cols-12 text-left gap-x-2 py-2 bg-yellow-100 text-red-700">
|
<tr className="grid grid-cols-12 text-left gap-x-2 py-2 bg-yellow-100 text-red-700">
|
||||||
<th className="col-span-12 px-1">Parameter names are not available.</th>
|
<th className="col-span-12 px-1">
|
||||||
|
Parameter names are not available.
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
)}
|
)}
|
||||||
</thead>
|
</thead>
|
Loading…
Reference in New Issue