mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
more fine grained price issues display
This commit is contained in:
parent
f2e906e790
commit
f6f6c68428
@ -28,11 +28,16 @@ export default function Price({
|
|||||||
conversion={conversion}
|
conversion={conversion}
|
||||||
type={price.type}
|
type={price.type}
|
||||||
/>
|
/>
|
||||||
) : !price || price?.value === 0 ? (
|
) : !price || !price.address ? (
|
||||||
<div className={styles.empty}>
|
<div className={styles.empty}>
|
||||||
No price found{' '}
|
No price set{' '}
|
||||||
<Tooltip content="We could not find a pool for this data set, which can have multiple reasons. Is your wallet connected to the correct network?" />
|
<Tooltip content="We could not find a pool for this data set, which can have multiple reasons. Is your wallet connected to the correct network?" />
|
||||||
</div>
|
</div>
|
||||||
|
) : price.isConsumable !== 'true' ? (
|
||||||
|
<div className={styles.empty}>
|
||||||
|
Not enough liquidity{' '}
|
||||||
|
<Tooltip content="This pool does not have enough liquidity for using thisa data set." />
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Loader message="Retrieving price..." />
|
<Loader message="Retrieving price..." />
|
||||||
)
|
)
|
||||||
|
@ -158,13 +158,7 @@ export default function Consume({
|
|||||||
<File file={file} />
|
<File file={file} />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.pricewrapper}>
|
<div className={styles.pricewrapper}>
|
||||||
{isConsumable ? (
|
<Price ddo={ddo} conversion />
|
||||||
<Price ddo={ddo} conversion />
|
|
||||||
) : (
|
|
||||||
<div className={styles.help}>
|
|
||||||
There is not enough liquidity in the pool to buy this data set.
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{!isInPurgatory && <PurchaseButton />}
|
{!isInPurgatory && <PurchaseButton />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user