diff --git a/src/components/PercentagePosition.tsx b/src/components/PercentagePosition.tsx new file mode 100644 index 0000000..c3efe8e --- /dev/null +++ b/src/components/PercentagePosition.tsx @@ -0,0 +1,23 @@ +import React from "react"; + +type PercentagePositionProps = { + perc: number; +}; + +const PercentagePosition: React.FC = ({ perc }) => ( +
+
+
+
+
+
+
+
+
+
+); + +export default React.memo(PercentagePosition); diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 25dddb5..7374a29 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -24,6 +24,7 @@ import { TransactionData, InternalOperation } from "../types"; import PercentageBar from "../components/PercentageBar"; import ExternalLink from "../components/ExternalLink"; import RelativePosition from "../components/RelativePosition"; +import PercentagePosition from "../components/PercentagePosition"; type DetailsProps = { txData: TransactionData; @@ -231,10 +232,15 @@ const Details: React.FC = ({ N/A {txData.nonce} - +
+ + +