From bcc40f775338c1c3d7378da1fd7d3ac4cf8ef4f4 Mon Sep 17 00:00:00 2001 From: Pete Watters <2938440+pete-watters@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:01:08 +0100 Subject: [PATCH] chore: show BRC-20 tokens on ledger, ref #5797 --- config/wallet-config.json | 3 +-- config/wallet-config.schema.json | 4 ---- src/app/features/asset-list/asset-list.tsx | 16 +++++----------- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/config/wallet-config.json b/config/wallet-config.json index 4d767edb9c2..e04bdddd932 100644 --- a/config/wallet-config.json +++ b/config/wallet-config.json @@ -91,6 +91,5 @@ }, "recoverUninscribedTaprootUtxosFeatureEnabled": true, "runesEnabled": true, - "swapsEnabled": true, - "brc20SendEnabled": false + "swapsEnabled": true } diff --git a/config/wallet-config.schema.json b/config/wallet-config.schema.json index fd70b758ff7..4746578f4ff 100644 --- a/config/wallet-config.schema.json +++ b/config/wallet-config.schema.json @@ -149,10 +149,6 @@ "swapsEnabled": { "type": "boolean", "description": "Determines whether or not the swaps feature is enabled" - }, - "brc20SendEnabled": { - "type": "boolean", - "description": "Determines whether or not BRC-20 tokens can be sent" } }, "$defs": { diff --git a/src/app/features/asset-list/asset-list.tsx b/src/app/features/asset-list/asset-list.tsx index ec2a933164f..42a201164c9 100644 --- a/src/app/features/asset-list/asset-list.tsx +++ b/src/app/features/asset-list/asset-list.tsx @@ -2,7 +2,6 @@ import { Stack } from 'leather-styles/jsx'; import { BtcAvatarIcon, StxAvatarIcon } from '@leather.io/ui'; -import { useWalletType } from '@app/common/use-wallet-type'; import { BitcoinNativeSegwitAccountLoader, BitcoinTaprootAccountLoader, @@ -35,7 +34,6 @@ interface AssetListProps { variant?: AssetListVariant; } export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListProps) { - const { whenWallet } = useWalletType(); const currentAccount = useCurrentStacksAccount(); const isLedger = useHasLedgerKeys(); @@ -117,15 +115,11 @@ export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListPro {taprootAccount => ( <> - {isReadOnly && - whenWallet({ - software: ( - - {tokens => } - - ), - ledger: null, - })} + {isReadOnly && ( + + {tokens => } + + )} {isReadOnly && ( <>