Skip to content

Commit

Permalink
fix: mf-4901 additional assets (#10388)
Browse files Browse the repository at this point in the history
* fix: add more chains

* fix: mf-4901 additional assets

* fix: prettier

---------

Co-authored-by: UncleBill <UncleBill@users.noreply.github.com>
Co-authored-by: guanbinrui <52657989+guanbinrui@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 14, 2023
1 parent 29a78ad commit 17a66f0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CollectionList, RestorableScroll, UserAssetsProvider } from '@masknet/s
import { NetworkPluginID, PopupRoutes } from '@masknet/shared-base'
import { makeStyles } from '@masknet/theme'
import type { Web3Helper } from '@masknet/web3-helpers'
import { useAccount, useChainContext, useWallet } from '@masknet/web3-hooks-base'
import { useAccount, useChainContext, useTrustedNonFungibleTokens, useWallet } from '@masknet/web3-hooks-base'
import { TabContext, TabList, TabPanel } from '@mui/lab'
import { Box, Button, Tab, Typography, styled, tabClasses, tabsClasses } from '@mui/material'
import { memo, useCallback, useRef } from 'react'
Expand Down Expand Up @@ -129,6 +129,7 @@ export const WalletAssetsUI = memo<WalletAssetsUIProps>(function WalletAssetsUI(

const { classes } = useStyles()
const [currentTab, handleTabChange] = useParamTab<WalletAssetTabs>(WalletAssetTabs.Tokens)
const trustedTokens = useTrustedNonFungibleTokens()

const account = useAccount(NetworkPluginID.PLUGIN_EVM)
const SEARCH_KEY = 'collectionId'
Expand Down Expand Up @@ -213,6 +214,7 @@ export const WalletAssetsUI = memo<WalletAssetsUIProps>(function WalletAssetsUI(
disableWindowScroll
scrollElementRef={scrollTargetRef}
emptyText={collectiblesEmptyText}
additionalAssets={trustedTokens}
onItemClick={handleItemClick}
onCollectionChange={handleCollectionChange}
/>
Expand Down

0 comments on commit 17a66f0

Please sign in to comment.