From ba91e640fee0e05c05749de4a215575f7cc291ab Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 30 Jul 2021 04:42:39 -0300 Subject: [PATCH] Renames --- src/special/london/{BlockRecord.tsx => BlockRow.tsx} | 6 +++--- src/special/london/Blocks.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/special/london/{BlockRecord.tsx => BlockRow.tsx} (92%) diff --git a/src/special/london/BlockRecord.tsx b/src/special/london/BlockRow.tsx similarity index 92% rename from src/special/london/BlockRecord.tsx rename to src/special/london/BlockRow.tsx index 1b23e65..890446c 100644 --- a/src/special/london/BlockRecord.tsx +++ b/src/special/london/BlockRow.tsx @@ -6,12 +6,12 @@ import { ExtendedBlock } from "../../useErigonHooks"; const ELASTICITY_MULTIPLIER = 2; -type BlockRecordProps = { +type BlockRowProps = { now: number; block: ExtendedBlock; }; -const BlockRecord: React.FC = ({ now, block }) => { +const BlockRow: React.FC = ({ now, block }) => { const gasTarget = block.gasLimit.div(ELASTICITY_MULTIPLIER); const burntFees = block?.baseFeePerGas && block.baseFeePerGas.mul(block.gasUsed); @@ -57,4 +57,4 @@ const BlockRecord: React.FC = ({ now, block }) => { ); }; -export default React.memo(BlockRecord); +export default React.memo(BlockRow); diff --git a/src/special/london/Blocks.tsx b/src/special/london/Blocks.tsx index c7f5bb5..3e9732f 100644 --- a/src/special/london/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -10,7 +10,7 @@ import { faCube, faGasPump, } from "@fortawesome/free-solid-svg-icons"; -import BlockRecord from "./BlockRecord"; +import BlockRow from "./BlockRow"; import { ExtendedBlock, readBlock } from "../../useErigonHooks"; import { RuntimeContext } from "../../useRuntime"; @@ -137,7 +137,7 @@ const Blocks: React.FC = ({ latestBlock }) => { leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 translate-y-10" > - + ))}