mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Preview action fixes (#1171)
* disable pool/trade tab in preview again * hide collection button on preview * cleanup * render fix
This commit is contained in:
parent
a988b4d81f
commit
ccb50b56e5
@ -263,9 +263,14 @@ export default function Download({
|
|||||||
{!isInPurgatory && <PurchaseButton />}
|
{!isInPurgatory && <PurchaseButton />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{asset?.accessDetails?.datatoken?.name !== '' &&
|
||||||
|
asset?.nft.owner === accountId && (
|
||||||
<div className={styles.collect}>
|
<div className={styles.collect}>
|
||||||
{asset.nft.owner === accountId && <CollectTokensButton />}
|
<CollectTokensButton />
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{asset?.metadata?.type === 'algorithm' && (
|
{asset?.metadata?.type === 'algorithm' && (
|
||||||
<AlgorithmDatasetsListForCompute
|
<AlgorithmDatasetsListForCompute
|
||||||
algorithmDid={asset.id}
|
algorithmDid={asset.id}
|
||||||
|
@ -162,12 +162,12 @@ export default function AssetActions({
|
|||||||
{
|
{
|
||||||
title: 'Pool',
|
title: 'Pool',
|
||||||
content: <Pool />,
|
content: <Pool />,
|
||||||
disabled: !asset?.accessDetails.datatoken
|
disabled: asset?.accessDetails.datatoken.name === ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Trade',
|
title: 'Trade',
|
||||||
content: <Trade />,
|
content: <Trade />,
|
||||||
disabled: !asset?.accessDetails.datatoken
|
disabled: asset?.accessDetails.datatoken.name === ''
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user