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