Skip to content

Commit

Permalink
fix logo
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Oct 5, 2023
1 parent 7824c8d commit ce18268
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions centrifuge-app/src/components/Portfolio/TokenListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccountTokenBalance, PoolMetadata } from '@centrifuge/centrifuge-js'
import { formatBalance } from '@centrifuge/centrifuge-react'
import { AccountTokenBalance } from '@centrifuge/centrifuge-js'
import { formatBalance, useCentrifuge } from '@centrifuge/centrifuge-react'
import {
AnchorButton,
Box,
Expand All @@ -13,7 +13,7 @@ import {
Thumbnail,
} from '@centrifuge/fabric'
import styled, { useTheme } from 'styled-components'
import { usePool } from '../../utils/usePools'
import { usePool, usePoolMetadata } from '../../utils/usePools'
import { Eththumbnail } from '../EthThumbnail'
import { Root } from '../ListItemCardStyles'
import { COLUMN_GAPS } from './InvestedTokens'
Expand All @@ -27,11 +27,13 @@ const TokenName = styled(Text)`
export function TokenListItem({ balance, currency, poolId, trancheId }: TokenCardProps) {
const { sizes } = useTheme()
const pool = usePool(poolId, false)
const { data: metadata } = usePoolMetadata(pool)
const cent = useCentrifuge()

const isTinlakePool = poolId.startsWith('0x')

const trancheInfo = pool?.tranches.find(({ id }) => id === trancheId)
const icon = (trancheInfo?.poolMetadata as PoolMetadata).tranches?.[trancheId].icon?.uri
const icon = metadata?.pool?.icon?.uri ? cent.metadata.parseMetadataUrl(metadata.pool.icon.uri) : null

return (
<Root as="article" minWidth="1060px">
Expand Down

0 comments on commit ce18268

Please sign in to comment.