diff --git a/.husky/pre-commit b/.husky/pre-commit index c81f321caf..915f4da116 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -6,12 +6,13 @@ echo 🧿 Running file linter... npx lint-staged # format svg -echo 🧿 Running svg formatter... -for file in `git diff --diff-filter=ACMRT --cached --name-only | grep ".svg\$"` - do - echo "Formatting $file" - ./node_modules/.bin/svgo -q $file - git add $file - done +# todo: disable for now. investigate why it's failing then re-enable +# echo 🧿 Running svg formatter... +# for file in `git diff --diff-filter=ACMRT --cached --name-only | grep ".svg\$"` +# do +# echo "Formatting $file" +# ./node_modules/.bin/svgo -q $file +# git add $file +# done echo ✅ All pre-commit jobs are done diff --git a/ui/block/BlockDetails.tsx b/ui/block/BlockDetails.tsx index d9c7f6ea40..97d5c0a9f2 100644 --- a/ui/block/BlockDetails.tsx +++ b/ui/block/BlockDetails.tsx @@ -963,7 +963,7 @@ const BlockDetails = ({ query }: Props) => { - + { burntFees.dividedBy(WEI).toFixed() } { currencyUnits.ether } diff --git a/ui/snippets/header/Burger.tsx b/ui/snippets/header/Burger.tsx index 253f92b72e..ebf78cfb3f 100644 --- a/ui/snippets/header/Burger.tsx +++ b/ui/snippets/header/Burger.tsx @@ -47,7 +47,7 @@ const Burger = ({ isMarketplaceAppPage }: Props) => { - { config.chain.isTestnet && } + { config.chain.isTestnet && } { config.UI.sidebar.featuredNetworks ? ( diff --git a/ui/tx/details/TxDetailsBurntFees.tsx b/ui/tx/details/TxDetailsBurntFees.tsx index eff5a1f88f..b4bd432c4b 100644 --- a/ui/tx/details/TxDetailsBurntFees.tsx +++ b/ui/tx/details/TxDetailsBurntFees.tsx @@ -5,14 +5,10 @@ import { TbCoins } from 'react-icons/tb'; import type { Transaction } from 'types/api/transaction'; -import config from 'configs/app'; -import { ZERO } from 'lib/consts'; import { currencyUnits } from 'lib/units'; import CurrencyValue from 'ui/shared/CurrencyValue'; import * as DetailsInfoItem from 'ui/shared/DetailsInfoItem'; -const rollupFeature = config.features.rollup; - interface Props { data: Transaction; isLoading?: boolean; @@ -20,16 +16,8 @@ interface Props { const TxDetailsBurntFees = ({ data, isLoading }: Props) => { - if (config.UI.views.tx.hiddenFields?.burnt_fees || (rollupFeature.isEnabled && rollupFeature.type === 'optimistic')) { - return null; - } - const value = BigNumber(data.tx_burnt_fee || 0).plus(BigNumber(data.blob_gas_used || 0).multipliedBy(BigNumber(data.blob_gas_price || 0))); - if (value.isEqualTo(ZERO)) { - return null; - } - return ( <> { - +