From a9ea58121a3a9671710f61314109e45d0e434960 Mon Sep 17 00:00:00 2001 From: isstuev Date: Tue, 15 Oct 2024 16:52:03 +0300 Subject: [PATCH] Blocks validated skeleton displays placeholder values --- .../blocksValidated/AddressBlocksValidatedListItem.tsx | 10 +++++++--- .../AddressBlocksValidatedTableItem.tsx | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/address/blocksValidated/AddressBlocksValidatedListItem.tsx b/ui/address/blocksValidated/AddressBlocksValidatedListItem.tsx index 1ec811a683..70f35d8ebc 100644 --- a/ui/address/blocksValidated/AddressBlocksValidatedListItem.tsx +++ b/ui/address/blocksValidated/AddressBlocksValidatedListItem.tsx @@ -1,4 +1,4 @@ -import { Flex, Skeleton } from '@chakra-ui/react'; +import { Text, Flex, Skeleton } from '@chakra-ui/react'; import BigNumber from 'bignumber.js'; import React from 'react'; @@ -45,7 +45,9 @@ const AddressBlocksValidatedListItem = (props: Props) => { Gas used - { BigNumber(props.gas_used || 0).toFormat() } + + { BigNumber(props.gas_used || 0).toFormat() } + { { !config.UI.views.block.hiddenFields?.total_reward && !config.features.rollup.isEnabled && ( Reward { currencyUnits.ether } - { totalReward.toFixed() } + + { totalReward.toFixed() } + ) } diff --git a/ui/address/blocksValidated/AddressBlocksValidatedTableItem.tsx b/ui/address/blocksValidated/AddressBlocksValidatedTableItem.tsx index 9ee38b297e..e4bce7e860 100644 --- a/ui/address/blocksValidated/AddressBlocksValidatedTableItem.tsx +++ b/ui/address/blocksValidated/AddressBlocksValidatedTableItem.tsx @@ -57,7 +57,7 @@ const AddressBlocksValidatedTableItem = (props: Props) => { { !config.UI.views.block.hiddenFields?.total_reward && !config.features.rollup.isEnabled && ( - + { totalReward.toFixed() }