Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Hide feed button from album collection header

Anand Baburajan2dbb070e0489
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 7a04e473f2..c578b82314 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -725,6 +725,7 @@ interface QuickOptionsProps {
const QuickOptions: React.FC<QuickOptionsProps> = ({
onEmptyTrashClick,
onDownloadClick,
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
onFeedClick,
onShareClick,
collectionSummary,
@@ -750,9 +751,9 @@ const QuickOptions: React.FC<QuickOptionsProps> = ({
onClick={onShareClick}
/>
)}
- {showFeedQuickOption(collectionSummary) && (
+ {/* {showFeedQuickOption(collectionSummary) && (
<FeedQuickOption onClick={onFeedClick} />
- )}
+ )} */}
</Stack>
);
@@ -834,6 +835,7 @@ const DownloadQuickOption: React.FC<DownloadQuickOptionProps> = ({
</Tooltip>
);
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
const showFeedQuickOption = ({ type, attributes }: CollectionSummary) =>
type == "sharedIncoming" ||
((type == "album" || type == "folder") && attributes.has("shared"));
@@ -865,6 +867,7 @@ const FeedIcon: React.FC = () => (
</svg>
);
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
const FeedQuickOption: React.FC<OptionProps> = ({ onClick }) => (
<Tooltip title={t("feed")}>
<IconButton onClick={onClick}>