mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
remove price conversion
This commit is contained in:
parent
19ccb80a48
commit
8b4363a866
@ -1,5 +1,4 @@
|
||||
import React, { ReactElement } from 'react'
|
||||
import { fromWei } from 'web3-utils'
|
||||
import classNames from 'classnames/bind'
|
||||
import PriceConversion from './Conversion'
|
||||
import styles from './index.module.css'
|
||||
@ -11,7 +10,7 @@ export default function Price({
|
||||
className,
|
||||
small
|
||||
}: {
|
||||
price: string
|
||||
price: string // expects price in OCEAN, not wei
|
||||
className?: string
|
||||
small?: boolean
|
||||
}): ReactElement {
|
||||
@ -27,8 +26,8 @@ export default function Price({
|
||||
'Free'
|
||||
) : (
|
||||
<>
|
||||
<span>OCEAN</span> {fromWei(price)}
|
||||
<PriceConversion price={fromWei(price)} />
|
||||
<span>OCEAN</span> {price}
|
||||
<PriceConversion price={price} />
|
||||
</>
|
||||
)
|
||||
|
||||
|
@ -52,7 +52,7 @@ export default function Consume({
|
||||
<File file={file} />
|
||||
</div>
|
||||
<div className={styles.pricewrapper}>
|
||||
{/* <Price price={cost} className={styles.price} /> */}
|
||||
<Price price={cost} className={styles.price} />
|
||||
<PurchaseButton />
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user