[Glitch] Don't display 'view collection' menu item on collection page

Port 392798a52c 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:
nicole mikołajczyk authored and Claire committed 2026-07-02 18:28:47 +02:00
1 parent d62b47c6b2
commit 22ba0969c6
1 file changed
+5 -5
@@ -163,11 +163,7 @@ export const CollectionMenu: React.FC<{
return ownerItems;
}
} else {
const nonOwnerItems: MenuItem[] = [
viewCollectionItem,
...shareItems,
null,
];
const nonOwnerItems: MenuItem[] = [...shareItems, null];
// Collection notifications already have a prominent 'Remove me' button
if (currentAccountInCollection && context !== 'notifications') {
@@ -189,6 +185,10 @@ export const CollectionMenu: React.FC<{
});
}
if (context !== 'collection') {
return [viewCollectionItem, ...nonOwnerItems];
}
return nonOwnerItems;
}
}, [