@@ -3,8 +3,8 @@ import { useWeb3State } from '@masknet/web3-hooks-base'
3
3
import type { Web3Helper } from '@masknet/web3-helpers'
4
4
import type { NetworkPluginID } from '@masknet/shared-base'
5
5
import { SourceType } from '@masknet/web3-shared-base'
6
- import { Box , Button , Tooltip , Typography } from '@mui/material'
7
- import { makeStyles } from '@masknet/theme'
6
+ import { Box , Button , Typography } from '@mui/material'
7
+ import { ShadowRootTooltip , makeStyles } from '@masknet/theme'
8
8
import { useI18N } from '../../../../utils/index.js'
9
9
import { type ChangeEventOptions , CollectibleItem , type SelectableProps } from './CollectibleItem.js'
10
10
import { CollectibleListContext } from './CollectibleListContext.js'
@@ -122,20 +122,19 @@ export function CollectibleList(props: CollectibleListProps) {
122
122
) : (
123
123
< Box className = { classes . root } >
124
124
{ collectibles . map ( ( token , index ) => {
125
- const name = token . collection ?. name || token . contract ?. name
125
+ const name = token . metadata ?. name
126
126
const uiTokenId = Others ?. formatTokenId ( token . tokenId , 4 ) ?? `#${ token . tokenId } `
127
- const title = name ? `${ name } ${ uiTokenId } ` : token . metadata ?. name ?? ''
127
+ const title = `${ name || token . collection ?. name || token . contract ?. name } ${ uiTokenId } `
128
128
const collectibleKey = getCollectibleKey ( token )
129
129
const checked = selectable ? value ?. includes ( collectibleKey ) : false
130
130
const inactive = value ? ! ! value ?. length && ! checked : false
131
131
return (
132
- < Tooltip
132
+ < ShadowRootTooltip
133
133
key = { index }
134
134
title = { title }
135
135
placement = "top"
136
136
disableInteractive
137
137
PopperProps = { {
138
- disablePortal : true ,
139
138
placement : 'top' ,
140
139
popperOptions : {
141
140
strategy : 'absolute' ,
@@ -166,7 +165,7 @@ export function CollectibleList(props: CollectibleListProps) {
166
165
value = { collectibleKey }
167
166
onChange = { handleItemChange }
168
167
/>
169
- </ Tooltip >
168
+ </ ShadowRootTooltip >
170
169
)
171
170
} ) }
172
171
</ Box >
0 commit comments