Skip to content

Commit

Permalink
Merge pull request #35 from codingknite/burn-fees-fix-flame
Browse files Browse the repository at this point in the history
fix flames icon
  • Loading branch information
codingknite authored Oct 24, 2024
2 parents e5709c2 + 4304894 commit e4643a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/blocks/BlocksTableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Tr, Td, Flex, Box, Tooltip, Skeleton, useColorModeValue } from '@chakra
import BigNumber from 'bignumber.js';
import { motion } from 'framer-motion';
import React from 'react';
import { TbCoins } from 'react-icons/tb';

import type { Block } from 'types/api/block';

Expand All @@ -14,7 +15,6 @@ import BlockTimestamp from 'ui/blocks/BlockTimestamp';
import AddressEntity from 'ui/shared/entities/address/AddressEntity';
import BlockEntity from 'ui/shared/entities/block/BlockEntity';
import GasUsedToTargetRatio from 'ui/shared/GasUsedToTargetRatio';
import IconSvg from 'ui/shared/IconSvg';
import LinkInternal from 'ui/shared/links/LinkInternal';
import TextSeparator from 'ui/shared/TextSeparator';
import Utilization from 'ui/shared/Utilization/Utilization';
Expand Down Expand Up @@ -116,7 +116,9 @@ const BlocksTableItem = ({ data, isLoading, enableTimeIncrement }: Props) => {
{ !isRollup && !config.UI.views.block.hiddenFields?.burnt_fees && (
<Td fontSize="sm">
<Flex alignItems="center" columnGap={ 2 }>
<IconSvg name="flame" boxSize={ 5 } color={ burntFeesIconColor } isLoading={ isLoading }/>
<Skeleton isLoaded={ !isLoading } display="inline-block">
<TbCoins size={ 20 } color={ burntFeesIconColor }/>
</Skeleton>
<Skeleton isLoaded={ !isLoading } display="inline-block">
{ burntFees.dividedBy(WEI).toFixed(8) }
</Skeleton>
Expand Down

0 comments on commit e4643a3

Please sign in to comment.