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 />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{asset?.accessDetails?.datatoken?.name !== '' &&
|
||||
asset?.nft.owner === accountId && (
|
||||
<div className={styles.collect}>
|
||||
{asset.nft.owner === accountId && <CollectTokensButton />}
|
||||
<CollectTokensButton />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{asset?.metadata?.type === 'algorithm' && (
|
||||
<AlgorithmDatasetsListForCompute
|
||||
algorithmDid={asset.id}
|
||||
|
@ -162,12 +162,12 @@ export default function AssetActions({
|
||||
{
|
||||
title: 'Pool',
|
||||
content: <Pool />,
|
||||
disabled: !asset?.accessDetails.datatoken
|
||||
disabled: asset?.accessDetails.datatoken.name === ''
|
||||
},
|
||||
{
|
||||
title: 'Trade',
|
||||
content: <Trade />,
|
||||
disabled: !asset?.accessDetails.datatoken
|
||||
disabled: asset?.accessDetails.datatoken.name === ''
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user