Skip to content

Commit

Permalink
fix: issues OK-23263 OK-23261 OK-23259 OK-23253 (#3530)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
weatherstar authored Sep 12, 2023
1 parent c63f1b2 commit 4c3677a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/views/Inscribe/BRC20Amount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -126,7 +126,7 @@ function BRC20Amount() {
navigation,
networkId,
serviceInscribe,
token?.name,
token?.symbol,
]);
return (
<Modal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ export function BaseSendConfirmModal(props: ITxConfirmViewProps) {
<BaseSendModal
height="598px"
primaryActionTranslationId={
sendConfirmParams.signOnly ? 'action__sign' : 'action__confirm'
sendConfirmParams.sourceInfo && sendConfirmParams.signOnly
? 'action__sign'
: 'action__confirm'
}
primaryActionProps={{
isDisabled:
Expand Down
6 changes: 5 additions & 1 deletion packages/kit/src/views/TokenDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ function TokenDetailViewWithoutMemo() {
}, [isVerticalLayout, defaultInfo]);

const headerRight = useCallback(() => {
if (!isVerticalLayout && !isBRC20) {
if (isBRC20) {
return null;
}

if (!isVerticalLayout) {
return <HeaderOptions />;
}
return <FavoritedButton coingeckoId={coingeckoId} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function BTCAssetDetailContent({
{!!asset.timestamp && (
<DetailItem
onPress={() => {
const isMainNet = network?.id === OnekeyNetwork.btc;
const isMainNet = networkId === OnekeyNetwork.btc;
const host = isMainNet
? 'https://ordinals.com'
: 'https://tbtc-ordinals.onekey.so';
Expand Down

0 comments on commit 4c3677a

Please sign in to comment.