@@ -11,6 +11,7 @@ import TokenLogoRound from '../../basic/TokenLogoRound/TokenLogoRound'
1111export const CryptoItem = ( { onClickItem, item } ) => {
1212 const { networkType } = useContext ( SettingsContext )
1313 const fetchingBalances = item . fetchingBalances
14+ const isBtcUnavailable = item . disabled
1415 const { tokenBalances } = useContext ( MintlayerContext )
1516 const isTestnet = networkType === AppInfo . NETWORK_TYPES . TESTNET
1617 const balance = item . balance
@@ -23,9 +24,12 @@ export const CryptoItem = ({ onClickItem, item }) => {
2324 Number ( value ) ,
2425 ] )
2526 const symbol = ! isTestnet ? item . symbol : 'Testnet'
27+ const isToken = item . name !== 'Mintlayer' && item . name !== 'Bitcoin'
2628
2729 const onClick = ( ) => {
28- onClickItem ( item )
30+ if ( ! isBtcUnavailable ) {
31+ onClickItem ( item )
32+ }
2933 }
3034
3135 const logoText =
@@ -55,10 +59,15 @@ export const CryptoItem = ({ onClickItem, item }) => {
5559 ) : (
5660 < li
5761 key = { item . symbol }
58- className = " crypto-item"
62+ className = { ` crypto-item ${ isBtcUnavailable ? 'disabled' : '' } ` }
5963 onClick = { onClick }
6064 data-testid = "crypto-item"
6165 >
66+ { isBtcUnavailable && (
67+ < div className = "crypto-network-mask-full" >
68+ < span className = "crypto-network-mask-text" > Offline</ span >
69+ </ div >
70+ ) }
6271 < div className = "logo-wrapper" >
6372 { logo ( ) }
6473 < div className = "name-values" >
@@ -67,7 +76,7 @@ export const CryptoItem = ({ onClickItem, item }) => {
6776 </ h5 >
6877 < div className = { `values ${ bigValues ? 'big-values' : '' } ` } >
6978 < dl >
70- { ! isTestnet ? (
79+ { ! isTestnet && ! isToken ? (
7180 < >
7281 < dd >
7382 { balance } { symbol }
@@ -121,7 +130,6 @@ export const ConnectItem = ({ walletType, onClick }) => {
121130 </ li >
122131 )
123132}
124-
125133const CryptoList = ( { cryptoList, onWalletItemClick, onConnectItemClick } ) => {
126134 const missingWalletTypes = AppInfo . walletTypes . filter (
127135 ( walletType ) =>
0 commit comments