From 8b4363a8667d99667ef3bbb5666673a772616a6c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 5 Aug 2020 13:11:39 +0200 Subject: [PATCH] remove price conversion --- src/components/atoms/Price/index.tsx | 7 +++---- src/components/organisms/AssetActions/Consume.tsx | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/atoms/Price/index.tsx b/src/components/atoms/Price/index.tsx index 2cbad0a91..e12263084 100644 --- a/src/components/atoms/Price/index.tsx +++ b/src/components/atoms/Price/index.tsx @@ -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' ) : ( <> - OCEAN {fromWei(price)} - + OCEAN {price} + ) diff --git a/src/components/organisms/AssetActions/Consume.tsx b/src/components/organisms/AssetActions/Consume.tsx index 0594e6a39..1388a2959 100644 --- a/src/components/organisms/AssetActions/Consume.tsx +++ b/src/components/organisms/AssetActions/Consume.tsx @@ -52,7 +52,7 @@ export default function Consume({
- {/* */} +