From a738ad2ae32bc8c36297a281ac14507a06c5574f Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 30 Jul 2021 05:18:28 -0300 Subject: [PATCH] Better formatting --- src/Home.tsx | 12 +++++++++++- src/special/london/BlockRow.tsx | 6 +++--- src/special/london/Blocks.tsx | 8 +++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/Home.tsx b/src/Home.tsx index fc969a2..c7a7a3f 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -1,6 +1,8 @@ import React, { useState, useContext } from "react"; import { NavLink, useHistory } from "react-router-dom"; import { ethers } from "ethers"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faBurn } from "@fortawesome/free-solid-svg-icons"; import Logo from "./Logo"; import Timestamp from "./components/Timestamp"; import { RuntimeContext } from "./useRuntime"; @@ -56,7 +58,15 @@ const Home: React.FC = () => {
- Check the special dashboard for EIP-1559 +
+ + + + Check the special dashboard for EIP-1559 + + + +
{latestBlock && ( diff --git a/src/special/london/BlockRow.tsx b/src/special/london/BlockRow.tsx index 890446c..6331cdb 100644 --- a/src/special/london/BlockRow.tsx +++ b/src/special/london/BlockRow.tsx @@ -34,14 +34,14 @@ const BlockRow: React.FC = ({ now, block }) => { > {ethers.utils.commify(block.gasUsed.toString())} -
+
{ethers.utils.commify(gasTarget.toString())}
{block.baseFeePerGas?.toString()} wei
{ethers.utils.commify(ethers.utils.formatEther(totalReward))} Ether
-
+
{ethers.utils.commify( ethers.utils.formatUnits( block.gasUsed.mul(block.baseFeePerGas!).toString(), @@ -50,7 +50,7 @@ const BlockRow: React.FC = ({ now, block }) => { )}{" "} Gwei
-
+
diff --git a/src/special/london/Blocks.tsx b/src/special/london/Blocks.tsx index e94f01e..6ef00ba 100644 --- a/src/special/london/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -15,6 +15,7 @@ import { faCoins, faCube, faGasPump, + faHistory, } from "@fortawesome/free-solid-svg-icons"; import BlockRow from "./BlockRow"; import { ExtendedBlock, readBlock } from "../../useErigonHooks"; @@ -168,7 +169,12 @@ const Blocks: React.FC = ({ latestBlock, targetBlockNumber }) => { Burnt fees
-
Age
+
+ + + + Age +
{blocks.map((b, i) => (