diff --git a/src/components/Nonce.tsx b/src/components/Nonce.tsx new file mode 100644 index 0000000..69f1c17 --- /dev/null +++ b/src/components/Nonce.tsx @@ -0,0 +1,21 @@ +import React from "react"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faArrowUp } from "@fortawesome/free-solid-svg-icons"; + +type NonceProps = { + value: number; +}; + +const Nonce: React.FC = ({ value }) => ( + + + + + {value} + +); + +export default React.memo(Nonce); diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 6bfae3e..9a3dd01 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -13,6 +13,7 @@ import BlockConfirmations from "../components/BlockConfirmations"; import AddressHighlighter from "../components/AddressHighlighter"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import Copy from "../components/Copy"; +import Nonce from "../components/Nonce"; import Timestamp from "../components/Timestamp"; import InternalTransactionOperation from "../components/InternalTransactionOperation"; import MethodName from "../components/MethodName"; @@ -88,16 +89,21 @@ const Details: React.FC = ({ - -
- - - - + +
+
+ + + + +
+
+ +
@@ -247,7 +253,6 @@ const Details: React.FC = ({
N/A - {txData.nonce}