[Glitch] Don't display 'view collection' menu item on collection page
Port 392798a52ca24c97e7b21bfab7d6c491e0241132 to glitch-soc Signed-off-by: nicole mikołajczyk <git@mkljczk.pl> Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
f8fb62193a
commit
d7213d97a7
@ -163,11 +163,7 @@ export const CollectionMenu: React.FC<{
|
|||||||
return ownerItems;
|
return ownerItems;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const nonOwnerItems: MenuItem[] = [
|
const nonOwnerItems: MenuItem[] = [...shareItems, null];
|
||||||
viewCollectionItem,
|
|
||||||
...shareItems,
|
|
||||||
null,
|
|
||||||
];
|
|
||||||
|
|
||||||
// Collection notifications already have a prominent 'Remove me' button
|
// Collection notifications already have a prominent 'Remove me' button
|
||||||
if (currentAccountInCollection && context !== 'notifications') {
|
if (currentAccountInCollection && context !== 'notifications') {
|
||||||
@ -189,6 +185,10 @@ export const CollectionMenu: React.FC<{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (context !== 'collection') {
|
||||||
|
return [viewCollectionItem, ...nonOwnerItems];
|
||||||
|
}
|
||||||
|
|
||||||
return nonOwnerItems;
|
return nonOwnerItems;
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user