mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
add conversion
This commit is contained in:
parent
508e4f7165
commit
49bb90865b
@ -61,7 +61,7 @@ export default function Conversion({
|
|||||||
className={styleClasses}
|
className={styleClasses}
|
||||||
title="Approximation based on current spot price on Coingecko"
|
title="Approximation based on current spot price on Coingecko"
|
||||||
>
|
>
|
||||||
≈ EUR {priceEur}
|
≈ {priceEur} EUR
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ export default function Remove({
|
|||||||
size="small"
|
size="small"
|
||||||
onClick={() => handleRemoveLiquidity()}
|
onClick={() => handleRemoveLiquidity()}
|
||||||
>
|
>
|
||||||
Supply
|
Remove
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,6 +9,8 @@ import Button from '../../../atoms/Button'
|
|||||||
import Add from './Add'
|
import Add from './Add'
|
||||||
import Remove from './Remove'
|
import Remove from './Remove'
|
||||||
import Tooltip from '../../../atoms/Tooltip'
|
import Tooltip from '../../../atoms/Tooltip'
|
||||||
|
import Conversion from '../../../atoms/Price/Conversion'
|
||||||
|
import { ReactComponent as External } from '../../../../images/external.svg'
|
||||||
|
|
||||||
interface Balance {
|
interface Balance {
|
||||||
ocean: string
|
ocean: string
|
||||||
@ -95,6 +97,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
|
|||||||
<div className={styles.dataToken}>
|
<div className={styles.dataToken}>
|
||||||
<PriceUnit price="1" symbol={dtSymbol} /> ={' '}
|
<PriceUnit price="1" symbol={dtSymbol} /> ={' '}
|
||||||
<PriceUnit price={dtPrice} />
|
<PriceUnit price={dtPrice} />
|
||||||
|
<Conversion price={dtPrice} />
|
||||||
<Tooltip content="Explain how this price is determined..." />
|
<Tooltip content="Explain how this price is determined..." />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ export default function MetaFull({
|
|||||||
<MetaItem title="DID" content={<code>{id}</code>} />
|
<MetaItem title="DID" content={<code>{id}</code>} />
|
||||||
|
|
||||||
<MetaItem
|
<MetaItem
|
||||||
title="Data Token Address"
|
title="Data Token"
|
||||||
content={
|
content={
|
||||||
<a
|
<a
|
||||||
href={`https://rinkeby.etherscan.io/token/${dataToken}`}
|
href={`https://rinkeby.etherscan.io/token/${dataToken}`}
|
||||||
|
Loading…
Reference in New Issue
Block a user