mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
disable all actions on publish preview (#1257)
* disable all actions on publish preview * remove asset actions disabled mechanism
This commit is contained in:
parent
63f0b41006
commit
9df8ed49a3
@ -150,25 +150,12 @@ export default function AssetActions({
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
const tabs: TabsItem[] = [
|
const tabs: TabsItem[] = [{ title: 'Use', content: UseContent }]
|
||||||
{
|
|
||||||
title: 'Use',
|
|
||||||
content: UseContent
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
asset?.accessDetails?.type === 'dynamic' &&
|
asset?.accessDetails?.type === 'dynamic' &&
|
||||||
tabs.push(
|
tabs.push(
|
||||||
{
|
{ title: 'Pool', content: <Pool /> },
|
||||||
title: 'Pool',
|
{ title: 'Trade', content: <Trade /> }
|
||||||
content: <Pool />,
|
|
||||||
disabled: asset?.accessDetails.datatoken.name === ''
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Trade',
|
|
||||||
content: <Trade />,
|
|
||||||
disabled: asset?.accessDetails.datatoken.name === ''
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
margin-bottom: var(--spacer);
|
margin-bottom: var(--spacer);
|
||||||
margin-left: calc(var(--spacer) / -4);
|
margin-left: calc(var(--spacer) / -4);
|
||||||
margin-right: calc(var(--spacer) / -4);
|
margin-right: calc(var(--spacer) / -4);
|
||||||
|
|
||||||
|
/* Disable all user actions as to not run into unintended
|
||||||
|
consequences of browsing away from publish. */
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 60rem) {
|
@media (min-width: 60rem) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user