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[] = [
|
||||
{
|
||||
title: 'Use',
|
||||
content: UseContent
|
||||
}
|
||||
]
|
||||
const tabs: TabsItem[] = [{ title: 'Use', content: UseContent }]
|
||||
|
||||
asset?.accessDetails?.type === 'dynamic' &&
|
||||
tabs.push(
|
||||
{
|
||||
title: 'Pool',
|
||||
content: <Pool />,
|
||||
disabled: asset?.accessDetails.datatoken.name === ''
|
||||
},
|
||||
{
|
||||
title: 'Trade',
|
||||
content: <Trade />,
|
||||
disabled: asset?.accessDetails.datatoken.name === ''
|
||||
}
|
||||
{ title: 'Pool', content: <Pool /> },
|
||||
{ title: 'Trade', content: <Trade /> }
|
||||
)
|
||||
|
||||
return (
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
margin-bottom: var(--spacer);
|
||||
margin-left: 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) {
|
||||
|
|
Loading…
Reference in New Issue