@@ -6,15 +6,15 @@ import { Button, Column, Content, Header, Icon, Layout, Row, Text } from '@/ui/c
6
6
import { useTools } from '@/ui/components/ActionComponent' ;
7
7
import { BRC20Ticker } from '@/ui/components/BRC20Ticker' ;
8
8
import InscriptionPreview from '@/ui/components/InscriptionPreview' ;
9
+ import { TickUsdWithoutPrice } from '@/ui/components/TickUsd' ;
9
10
import { useCurrentAccount } from '@/ui/state/accounts/hooks' ;
10
- import { useBlockstreamUrl , useOrdinalsWebsite , useUnisatWebsite } from '@/ui/state/settings/hooks' ;
11
+ import { useOrdinalsWebsite , useTxExplorerUrl , useUnisatWebsite } from '@/ui/state/settings/hooks' ;
11
12
import { colors } from '@/ui/theme/colors' ;
12
13
import { fontSizes } from '@/ui/theme/font' ;
13
14
import { copyToClipboard , showLongNumber , useLocationState , useWallet } from '@/ui/utils' ;
14
15
import { LoadingOutlined } from '@ant-design/icons' ;
15
16
16
17
import { useNavigate } from '../MainRoute' ;
17
- import { TickUsdWithoutPrice } from '@/ui/components/TickUsd' ;
18
18
19
19
interface LocationState {
20
20
runeid : string ;
@@ -95,7 +95,8 @@ export default function RunesTokenScreen() {
95
95
96
96
const ordinalsWebsite = useOrdinalsWebsite ( ) ;
97
97
98
- const mempoolWebsite = useBlockstreamUrl ( ) ;
98
+ const txExplorerUrl = useTxExplorerUrl ( tokenSummary . runeInfo . etching ) ;
99
+
99
100
if ( loading ) {
100
101
return (
101
102
< Layout >
@@ -132,10 +133,15 @@ export default function RunesTokenScreen() {
132
133
< BRC20Ticker tick = { tokenSummary . runeBalance . symbol } preset = "lg" />
133
134
</ Row >
134
135
< Row justifyCenter fullX >
135
- < TickUsdWithoutPrice tick = { tokenSummary . runeInfo . spacedRune } balance = { runesUtils . toDecimalAmount (
136
- tokenSummary . runeBalance . amount ,
137
- tokenSummary . runeBalance . divisibility
138
- ) } type = { 'runes' } size = { 'md' } />
136
+ < TickUsdWithoutPrice
137
+ tick = { tokenSummary . runeInfo . spacedRune }
138
+ balance = { runesUtils . toDecimalAmount (
139
+ tokenSummary . runeBalance . amount ,
140
+ tokenSummary . runeBalance . divisibility
141
+ ) }
142
+ type = { 'runes' }
143
+ size = { 'md' }
144
+ />
139
145
</ Row >
140
146
141
147
< Row justifyBetween mt = "lg" >
@@ -216,11 +222,7 @@ export default function RunesTokenScreen() {
216
222
217
223
< Section title = "transactions" value = { showLongNumber ( tokenSummary . runeInfo . transactions ) } />
218
224
219
- < Section
220
- title = "etching"
221
- value = { tokenSummary . runeInfo . etching }
222
- link = { `${ mempoolWebsite } /tx/${ tokenSummary . runeInfo . etching } ` }
223
- />
225
+ < Section title = "etching" value = { tokenSummary . runeInfo . etching } link = { txExplorerUrl } />
224
226
225
227
{ tokenSummary . runeInfo . parent ? (
226
228
< Section
0 commit comments