From d6fed2fa4b8338f762577a6a49caea40efa9e7c6 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Wed, 4 Aug 2021 16:05:22 -0300 Subject: [PATCH] Add chart toggle button --- src/special/london/Blocks.tsx | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/special/london/Blocks.tsx b/src/special/london/Blocks.tsx index ec65d85..7d580d9 100644 --- a/src/special/london/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -39,7 +39,7 @@ const Blocks: React.FC = ({ latestBlock, targetBlockNumber }) => { const { provider } = useContext(RuntimeContext); const [blocks, setBlocks] = useState([]); const [now, setNow] = useState(Date.now()); - const [toggleChart, setToggleChart] = useState(false); + const [toggleChart, setToggleChart] = useState(true); const addBlock = useCallback( async (blockNumber: number) => { @@ -106,14 +106,21 @@ const Blocks: React.FC = ({ latestBlock, targetBlockNumber }) => { return (
-
- - - - EIP-1559 is activated. Watch the fees burn. - - - +
+
+ + + + EIP-1559 is activated. Watch the fees burn. + + + +
+
+ +