From f02258b25d3618630005817b03494920a362dbd6 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Wed, 15 Sep 2021 15:34:49 -0300 Subject: [PATCH] Migrate code to headless-ui --- src/transaction/Details.tsx | 110 ++++++++++++++++++++++-------------- 1 file changed, 67 insertions(+), 43 deletions(-) diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index d6cf61c..cca0ea1 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -1,7 +1,8 @@ -import React, { useMemo, useState } from "react"; +import React, { useMemo } from "react"; import { TransactionDescription } from "@ethersproject/abi"; import { BigNumber } from "@ethersproject/bignumber"; import { toUtf8String } from "@ethersproject/strings"; +import { Tab } from "@headlessui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCheckCircle } from "@fortawesome/free-solid-svg-icons/faCheckCircle"; import { faCube } from "@fortawesome/free-solid-svg-icons/faCube"; @@ -48,7 +49,6 @@ const Details: React.FC = ({ const hasEIP1559 = txData.confirmedData?.blockBaseFeePerGas !== undefined && txData.confirmedData?.blockBaseFeePerGas !== null; - const [inputMode, setInputMode] = useState(0); const utfInput = useMemo(() => { try { @@ -312,51 +312,75 @@ const Details: React.FC = ({ )} -
-
- - -
-