Skip to content

Commit 662ccfc

Browse files
authored
Merge pull request #38 from codingknite/fix-burnt-fees-icons
Fix burnt fees icons
2 parents 9efa1d0 + a6cd9f7 commit 662ccfc

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

ui/snippets/header/Burger.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Burger = ({ isMarketplaceAppPage }: Props) => {
4747
<DrawerOverlay/>
4848
<DrawerContent maxWidth="330px">
4949
<DrawerBody p={ 6 } display="flex" flexDirection="column">
50-
{ config.chain.isTestnet && <IconSvg name="testnet" h="14px" w="37px" color="red.400" alignSelf="flex-start"/> }
50+
{ config.chain.isTestnet && <IconSvg name="testnetv2" h="14px" w="37px" color="red.400" alignSelf="flex-start"/> }
5151
<Flex alignItems="center" justifyContent="space-between">
5252
<NetworkLogo onClick={ handleNetworkLogoClick }/>
5353
{ config.UI.sidebar.featuredNetworks ? (

ui/tx/details/TxDetailsBurntFees.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,18 @@ import { TbCoins } from 'react-icons/tb';
55

66
import type { Transaction } from 'types/api/transaction';
77

8-
import config from 'configs/app';
98
import { ZERO } from 'lib/consts';
109
import { currencyUnits } from 'lib/units';
1110
import CurrencyValue from 'ui/shared/CurrencyValue';
1211
import * as DetailsInfoItem from 'ui/shared/DetailsInfoItem';
1312

14-
const rollupFeature = config.features.rollup;
15-
1613
interface Props {
1714
data: Transaction;
1815
isLoading?: boolean;
1916
}
2017

2118
const TxDetailsBurntFees = ({ data, isLoading }: Props) => {
2219

23-
if (config.UI.views.tx.hiddenFields?.burnt_fees || (rollupFeature.isEnabled && rollupFeature.type === 'optimistic')) {
24-
return null;
25-
}
26-
2720
const value = BigNumber(data.tx_burnt_fee || 0).plus(BigNumber(data.blob_gas_used || 0).multipliedBy(BigNumber(data.blob_gas_price || 0)));
2821

2922
if (value.isEqualTo(ZERO)) {
@@ -43,7 +36,7 @@ const TxDetailsBurntFees = ({ data, isLoading }: Props) => {
4336
</DetailsInfoItem.Label>
4437
<DetailsInfoItem.Value>
4538
<Skeleton isLoaded={ !isLoading } display="inline-block">
46-
<TbCoins size={ 20 } color="gray.500"/>
39+
<TbCoins size={ 20 } color="#718096"/>
4740
</Skeleton>
4841
<CurrencyValue
4942
value={ value.toString() }

0 commit comments

Comments
 (0)