Skip to content

Commit

Permalink
feat: add token symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteubs-bc committed Apr 29, 2022
1 parent daff612 commit 03a4c1c
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@ import React from 'react'
import { FormattedMessage } from 'react-intl'

import CoinDisplay from 'components/Display/CoinDisplay'
import { Flex } from 'components/Flex'
import { CellHeaderText, CellText } from 'components/Table'
import { CoinIcon } from 'layouts/Wallet/components'

export const getPriceColumn = () => ({
Cell: ({ row: { original: offer } }) => {
return (
<CellText>
<CoinDisplay
coin={offer.payment_token_contract.symbol}
weight={600}
size='14px'
color='grey900'
>
{offer.base_price}
</CoinDisplay>
<Flex gap={6} alignItems='center'>
<CoinIcon name={offer.payment_token_contract.symbol} />
<CoinDisplay
coin={offer.payment_token_contract.symbol}
weight={600}
size='14px'
color='grey900'
>
{offer.base_price}
</CoinDisplay>
</Flex>
</CellText>
)
},
Expand Down

0 comments on commit 03a4c1c

Please sign in to comment.