From 4c3677a8a1ac9be3199b6848c3d1b1d7529f53cf Mon Sep 17 00:00:00 2001 From: weatherstar Date: Tue, 12 Sep 2023 14:08:08 +0800 Subject: [PATCH] fix: issues OK-23263 OK-23261 OK-23259 OK-23253 (#3530) * fix: hide like button on brc20 token detail * fix: inscribe send confirm button text error * fix: inscription url error * fix: inscribe brc20 transferable balance error --- packages/kit/src/views/Inscribe/BRC20Amount/index.tsx | 4 ++-- .../kit/src/views/Send/components/BaseSendConfirmModal.tsx | 4 +++- packages/kit/src/views/TokenDetail/index.tsx | 6 +++++- .../NFTDetail/Components/BTCAsset/BTCAssetDetailContent.tsx | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/kit/src/views/Inscribe/BRC20Amount/index.tsx b/packages/kit/src/views/Inscribe/BRC20Amount/index.tsx index 9d1631c6fe0..53264cbf46c 100644 --- a/packages/kit/src/views/Inscribe/BRC20Amount/index.tsx +++ b/packages/kit/src/views/Inscribe/BRC20Amount/index.tsx @@ -96,7 +96,7 @@ function BRC20Amount() { }; const amount = getValues('amount'); - const brc20Text = createBRC20TransferText(amount, token?.name ?? ''); + const brc20Text = createBRC20TransferText(amount, token?.symbol ?? ''); if (brc20Text.length > 0) { try { contents = await serviceInscribe.createInscriptionContents({ @@ -126,7 +126,7 @@ function BRC20Amount() { navigation, networkId, serviceInscribe, - token?.name, + token?.symbol, ]); return ( { - if (!isVerticalLayout && !isBRC20) { + if (isBRC20) { + return null; + } + + if (!isVerticalLayout) { return ; } return ; diff --git a/packages/kit/src/views/Wallet/NFT/NFTDetail/Components/BTCAsset/BTCAssetDetailContent.tsx b/packages/kit/src/views/Wallet/NFT/NFTDetail/Components/BTCAsset/BTCAssetDetailContent.tsx index 595e0525e22..83e2bba708f 100644 --- a/packages/kit/src/views/Wallet/NFT/NFTDetail/Components/BTCAsset/BTCAssetDetailContent.tsx +++ b/packages/kit/src/views/Wallet/NFT/NFTDetail/Components/BTCAsset/BTCAssetDetailContent.tsx @@ -451,7 +451,7 @@ function BTCAssetDetailContent({ {!!asset.timestamp && ( { - const isMainNet = network?.id === OnekeyNetwork.btc; + const isMainNet = networkId === OnekeyNetwork.btc; const host = isMainNet ? 'https://ordinals.com' : 'https://tbtc-ordinals.onekey.so';