From c804b192846049bcb86d7278bcd2a96a90e7caae Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Wed, 6 Apr 2022 00:27:35 -0300 Subject: [PATCH 1/2] Revamp token transfer list table --- src/TokenTransferItem.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/TokenTransferItem.tsx b/src/TokenTransferItem.tsx index 0869a17..f616922 100644 --- a/src/TokenTransferItem.tsx +++ b/src/TokenTransferItem.tsx @@ -1,6 +1,7 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; +import { faSackDollar } from "@fortawesome/free-solid-svg-icons/faSackDollar"; import TransactionAddress from "./components/TransactionAddress"; import ValueHighlighter from "./components/ValueHighlighter"; import FormattedBalance from "./components/FormattedBalance"; @@ -26,12 +27,8 @@ const TokenTransferItem: React.FC = ({ }) => { return (
- - - -
-
- From +
+
= ({ showCodeIndicator />
-
- To +
+ + + = ({ showCodeIndicator />
-
- For +
+ + + Date: Wed, 6 Apr 2022 01:15:40 -0300 Subject: [PATCH 2/2] Simplify internal transfer table --- src/components/InternalCreate.tsx | 12 ++-- src/components/InternalSelfDestruct.tsx | 1 - src/components/InternalTransfer.tsx | 94 ++++++++++++++----------- 3 files changed, 60 insertions(+), 47 deletions(-) diff --git a/src/components/InternalCreate.tsx b/src/components/InternalCreate.tsx index fbb7f8f..7fa5850 100644 --- a/src/components/InternalCreate.tsx +++ b/src/components/InternalCreate.tsx @@ -1,6 +1,7 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; +import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; import TransactionAddress from "./TransactionAddress"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; @@ -15,16 +16,17 @@ const InternalCreate: React.FC = ({ internalOp }) => ( CREATE - Contract + + + + + +
- - (Creator:{" "} - ) -
); diff --git a/src/components/InternalSelfDestruct.tsx b/src/components/InternalSelfDestruct.tsx index 8cb828e..bc6029b 100644 --- a/src/components/InternalSelfDestruct.tsx +++ b/src/components/InternalSelfDestruct.tsx @@ -30,7 +30,6 @@ const InternalSelfDestruct: React.FC = ({ SELF DESTRUCT - Contract
diff --git a/src/components/InternalTransfer.tsx b/src/components/InternalTransfer.tsx index b52acb9..09c3111 100644 --- a/src/components/InternalTransfer.tsx +++ b/src/components/InternalTransfer.tsx @@ -2,6 +2,8 @@ import React, { useContext } from "react"; import { formatEther } from "@ethersproject/units"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; +import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; +import { faSackDollar } from "@fortawesome/free-solid-svg-icons/faSackDollar"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { RuntimeContext } from "../useRuntime"; @@ -41,48 +43,58 @@ const InternalTransfer: React.FC = ({ ); return ( -
- - TRANSFER - - - {formatEther(internalOp.value)} {symbol} - -
- From - -
- +
+
+
+ + TRANSFER + +
+ +
+ +
+
- -
-
- To - -
- -
-
+
+
+ + + + +
+ +
+
+
+
+ + + + + {formatEther(internalOp.value)} {symbol} + +
);