1+ import {
2+ isTokenWithBalanceAVM ,
3+ isTokenWithBalancePVM
4+ } from '@avalabs/avalanche-module'
15import { BridgeTransfer } from '@avalabs/bridge-unified'
26import { BridgeTransaction } from '@avalabs/core-bridge-sdk'
37import { Text , useTheme , View } from '@avalabs/k2-alpine'
8+ import { TokenWithBalance } from '@avalabs/vm-module-types'
49import { FlashListProps , ListRenderItem } from '@shopify/flash-list'
510import { CollapsibleTabs } from 'common/components/CollapsibleTabs'
611import { isXpTransaction } from 'common/utils/isXpTransactions'
712import { ACTIVITY_LIST_ITEM_HEIGHT } from 'features/portfolio/assets/components/ActivityListItem'
813import { PendingBridgeTransactionItem } from 'features/portfolio/assets/components/PendingBridgeTransactionItem'
914import { TokenActivityListItem } from 'features/portfolio/assets/components/TokenActivityListItem'
1015import { XpActivityListItem } from 'features/portfolio/assets/components/XpActivityListItem'
16+ import { useWatchlist } from 'hooks/watchlist/useWatchlist'
1117import React , { useCallback } from 'react'
12- import { TokenWithBalance } from '@avalabs/vm-module-types'
13- import {
14- isTokenWithBalanceAVM ,
15- isTokenWithBalancePVM
16- } from '@avalabs/avalanche-module'
1718import { ActivityListItem } from '../utils'
1819
1920export const ActivityList = ( {
@@ -37,6 +38,7 @@ export const ActivityList = ({
3738 renderHeader : ( ) => React . ReactNode
3839 renderEmpty : ( ) => React . ReactNode
3940} ) : JSX . Element => {
41+ const { prices } = useWatchlist ( )
4042 const renderItem : ListRenderItem < ActivityListItem > = useCallback (
4143 ( { item, index } ) => {
4244 if ( item . type === 'header' ) {
@@ -97,6 +99,7 @@ export const ActivityList = ({
9799 key = { xpToken ?. symbol }
98100 overrideProps = { overrideProps }
99101 data = { data }
102+ extraData = { { prices } }
100103 renderItem = { renderItem }
101104 ListHeaderComponent = { renderHeader }
102105 ListEmptyComponent = { renderEmpty }
0 commit comments