Renames
This commit is contained in:
parent
7e73f12c75
commit
ba91e640fe
|
@ -6,12 +6,12 @@ import { ExtendedBlock } from "../../useErigonHooks";
|
|||
|
||||
const ELASTICITY_MULTIPLIER = 2;
|
||||
|
||||
type BlockRecordProps = {
|
||||
type BlockRowProps = {
|
||||
now: number;
|
||||
block: ExtendedBlock;
|
||||
};
|
||||
|
||||
const BlockRecord: React.FC<BlockRecordProps> = ({ now, block }) => {
|
||||
const BlockRow: React.FC<BlockRowProps> = ({ 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<BlockRecordProps> = ({ now, block }) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default React.memo(BlockRecord);
|
||||
export default React.memo(BlockRow);
|
|
@ -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<BlocksProps> = ({ latestBlock }) => {
|
|||
leaveFrom="opacity-100 translate-y-0"
|
||||
leaveTo="opacity-0 translate-y-10"
|
||||
>
|
||||
<BlockRecord now={now} block={b} />
|
||||
<BlockRow now={now} block={b} />
|
||||
</Transition>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue