diff --git a/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx b/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx index 47ef175edaee..10a297fbec04 100644 --- a/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx +++ b/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx @@ -5,6 +5,7 @@ import { NonFungibleAsset, NonFungibleTokenCollection, SocialAddress, + SocialAddressType, SourceType, Wallet, } from '@masknet/web3-shared-base' @@ -279,10 +280,14 @@ export function CollectionList({ className={classes.button} variant="outlined" size="small"> - + {addressName.type === SocialAddressType.ADDRESS ? ( + + ) : ( + addressName.label + )} @@ -302,7 +307,14 @@ export function CollectionList({ diff --git a/packages/mask/src/plugins/Collectible/SNSAdaptor/NFTPage.tsx b/packages/mask/src/plugins/Collectible/SNSAdaptor/NFTPage.tsx index c09e3dce6a7d..0d56953e005d 100644 --- a/packages/mask/src/plugins/Collectible/SNSAdaptor/NFTPage.tsx +++ b/packages/mask/src/plugins/Collectible/SNSAdaptor/NFTPage.tsx @@ -3,7 +3,7 @@ import { first, uniqBy } from 'lodash-unified' import { ReversedAddress } from '@masknet/shared' import { getMaskColor, makeStyles, ShadowRootMenu } from '@masknet/theme' import { MenuItem } from '@mui/material' -import type { SocialAddress, NetworkPluginID, SocialIdentity } from '@masknet/web3-shared-base' +import { SocialAddress, NetworkPluginID, SocialIdentity, SocialAddressType } from '@masknet/web3-shared-base' import { CollectionList } from '../../../extension/options-page/DashboardComponents/CollectibleList' import { EMPTY_LIST } from '@masknet/shared-base' @@ -72,7 +72,11 @@ export function NFTPage({ socialAddressList }: NFTPageProps) { {uniqBy(socialAddressList ?? EMPTY_LIST, (x) => x.address.toLowerCase()).map((x) => { return ( onSelect(x)}> - + {x.type === SocialAddressType.ADDRESS ? ( + + ) : ( + x.label + )} ) })}