From 4acc8be926bd5150d40952d42c63ce8c81b229ee Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 25 Oct 2021 01:44:24 -0300 Subject: [PATCH] UI tweaks --- src/address/ContractABI.tsx | 10 +++++----- src/address/DecodedABI.tsx | 2 +- src/address/DecodedFragment.tsx | 7 ++++++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/address/ContractABI.tsx b/src/address/ContractABI.tsx index 086d92c..edd713c 100644 --- a/src/address/ContractABI.tsx +++ b/src/address/ContractABI.tsx @@ -12,7 +12,11 @@ type ContractABIProps = { const ContractABI: React.FC = ({ abi }) => (
- + +
+ ABI + +
Decoded Raw
@@ -21,10 +25,6 @@ const ContractABI: React.FC = ({ abi }) => ( -
- ABI - -
diff --git a/src/address/DecodedABI.tsx b/src/address/DecodedABI.tsx index 1de994d..587538a 100644 --- a/src/address/DecodedABI.tsx +++ b/src/address/DecodedABI.tsx @@ -9,7 +9,7 @@ type DecodedABIProps = { const DecodedABI: React.FC = ({ abi }) => { const intf = new Interface(abi); return ( -
+
{intf.fragments.map((f, i) => ( ))} diff --git a/src/address/DecodedFragment.tsx b/src/address/DecodedFragment.tsx index 33e694c..991865a 100644 --- a/src/address/DecodedFragment.tsx +++ b/src/address/DecodedFragment.tsx @@ -6,6 +6,8 @@ import { FunctionFragment, Interface, } from "@ethersproject/abi"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; type DecodedFragmentProps = { intf: Interface; @@ -34,7 +36,10 @@ const DecodedFragment: React.FC = ({ } return ( -
+
+ + + {letter && (