1
0
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:
Matthias Kretschmann 2020-08-05 13:11:39 +02:00
parent 19ccb80a48
commit 8b4363a866
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 5 deletions

View File

@ -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} />
</> </>
) )

View File

@ -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>