diff --git a/src/app/pages/home/home.tsx b/src/app/pages/home/home.tsx index fed559a85b..e049ff26b4 100644 --- a/src/app/pages/home/home.tsx +++ b/src/app/pages/home/home.tsx @@ -3,6 +3,8 @@ import { Route, useNavigate } from 'react-router-dom'; import { HomePageSelectors } from '@tests/selectors/home.selectors'; import { Box, Stack } from 'leather-styles/jsx'; +import { Switch } from '@leather.io/ui'; + import { RouteUrls } from '@shared/route-urls'; import { useAccountDisplayName } from '@app/common/hooks/account/use-account-names'; @@ -74,6 +76,10 @@ export function Home() { onShowBalance={togglePrivateMode} > + Globally toggle inscription protection + console.log(val)}> + + {whenPageMode({ full: , popup: null })} diff --git a/src/app/query/bitcoin/address/utxos-by-address.hooks.ts b/src/app/query/bitcoin/address/utxos-by-address.hooks.ts index 6b0d6e8703..be0612915b 100644 --- a/src/app/query/bitcoin/address/utxos-by-address.hooks.ts +++ b/src/app/query/bitcoin/address/utxos-by-address.hooks.ts @@ -1,7 +1,6 @@ import { useNativeSegwitUtxosByAddress } from '@leather.io/query'; import { useCurrentAccountNativeSegwitIndexZeroSigner } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks'; -import { useHasUserBypassedInscriptionChecks } from '@app/store/settings/settings.selectors'; const defaultArgs = { filterInscriptionUtxos: true, @@ -16,15 +15,15 @@ const defaultArgs = { export function useCurrentNativeSegwitUtxos(args = defaultArgs) { const { filterInscriptionUtxos, filterPendingTxsUtxos, filterRunesUtxos } = args; - const hasUserByPassedInscriptionChecks = useHasUserBypassedInscriptionChecks(); - const nativeSegwitSigner = useCurrentAccountNativeSegwitIndexZeroSigner(); const address = nativeSegwitSigner.address; - return useNativeSegwitUtxosByAddress({ + const query = useNativeSegwitUtxosByAddress({ address, - filterInscriptionUtxos: hasUserByPassedInscriptionChecks ? false : filterInscriptionUtxos, + filterInscriptionUtxos, filterPendingTxsUtxos, filterRunesUtxos, }); + + return { ...query }; }