1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

add conversion

This commit is contained in:
Matthias Kretschmann 2020-08-20 10:55:17 +02:00
parent 508e4f7165
commit 49bb90865b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 6 additions and 3 deletions

View File

@ -61,7 +61,7 @@ export default function Conversion({
className={styleClasses}
title="Approximation based on current spot price on Coingecko"
>
EUR {priceEur}
{priceEur} EUR
</span>
)
}

View File

@ -71,7 +71,7 @@ export default function Remove({
size="small"
onClick={() => handleRemoveLiquidity()}
>
Supply
Remove
</Button>
)}
</div>

View File

@ -9,6 +9,8 @@ import Button from '../../../atoms/Button'
import Add from './Add'
import Remove from './Remove'
import Tooltip from '../../../atoms/Tooltip'
import Conversion from '../../../atoms/Price/Conversion'
import { ReactComponent as External } from '../../../../images/external.svg'
interface Balance {
ocean: string
@ -95,6 +97,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
<div className={styles.dataToken}>
<PriceUnit price="1" symbol={dtSymbol} /> ={' '}
<PriceUnit price={dtPrice} />
<Conversion price={dtPrice} />
<Tooltip content="Explain how this price is determined..." />
</div>

View File

@ -32,7 +32,7 @@ export default function MetaFull({
<MetaItem title="DID" content={<code>{id}</code>} />
<MetaItem
title="Data Token Address"
title="Data Token"
content={
<a
href={`https://rinkeby.etherscan.io/token/${dataToken}`}