Skip to content

Commit baed8cb

Browse files
committed
Merge branch 'develop' of https://github.com/unisat-wallet/extension into develop
2 parents 5223a70 + 1590e91 commit baed8cb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/ui/pages/Approval/components/InscribeTransfer.tsx

+12-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ import {
2222
} from '@/ui/state/transactions/hooks';
2323
import { fontSizes } from '@/ui/theme/font';
2424
import { spacing } from '@/ui/theme/spacing';
25-
import { satoshisToAmount, useApproval, useLocationState, useWallet } from '@/ui/utils';
25+
import { amountToSatoshis, satoshisToAmount, useApproval, useLocationState, useWallet } from '@/ui/utils';
2626
import { getAddressUtxoDust } from '@unisat/wallet-sdk/lib/transaction';
2727

2828
import { useNavigate } from '../../MainRoute';
2929
import SignPsbt from './SignPsbt';
30+
import { TickUsdWithoutPrice } from '@/ui/components/TickUsd';
31+
import { BtcUsd } from '@/ui/components/BtcUsd';
3032

3133
interface Props {
3234
params: {
@@ -281,9 +283,9 @@ function InscribeTransferStep({ contextData, updateContextData }: StepProps) {
281283
<Text text="Inscribe TRANSFER" preset="title-bold" textCenter my="lg" />
282284

283285
<Column>
284-
<Row justifyBetween>
286+
<Row justifyBetween itemsCenter>
285287
<Text text="Available" color="textDim" />
286-
288+
<TickUsdWithoutPrice tick={contextData.ticker} balance={inputAmount} type={'brc20'}/>
287289
{tokenBalance ? (
288290
<Column>
289291
{tokenBalance.availableBalanceUnSafe != '0' ? (
@@ -439,7 +441,9 @@ function InscribeConfirmStep({ contextData, updateContextData }: StepProps) {
439441
<Text text={`${amount}`} preset="title-bold" size="xxl" textCenter wrap digital/>
440442
<BRC20Ticker tick={tokenBalance.ticker} preset="lg" />
441443
</Row>
442-
444+
<Row itemsCenter justifyCenter>
445+
<TickUsdWithoutPrice tick={tokenBalance.ticker} balance={amount+''} type={'brc20'}/>
446+
</Row>
443447
<Column mt="xxl">
444448
<Text text="Preview" preset="sub-bold" />
445449
<Card preset="style2">
@@ -487,6 +491,10 @@ function InscribeConfirmStep({ contextData, updateContextData }: StepProps) {
487491
<Text text="Total" color="gold" />
488492
<Text text={`${totalFee} BTC`} color="gold" />
489493
</Row>
494+
<Row justifyBetween>
495+
<div></div>
496+
<BtcUsd sats={amountToSatoshis(totalFee)}/>
497+
</Row>
490498
</Column>
491499
</Column>
492500
</Column>

0 commit comments

Comments
 (0)