Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove redundant Hidden items overflow menu

vijayadithyanpj2753bc1bb69e
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 7f85d2eeec..e3ea64dfca 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -431,16 +431,6 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
break;
case "hiddenItems":
- menuOptions = [
- fileCount && (
- <DownloadOption
- key="download-hidden"
- onClick={downloadCollection}
- >
- {t("download_hidden_items")}
- </DownloadOption>
- ),
- ];
break;
case "sharedIncoming":
@@ -1010,27 +1000,6 @@ const CastQuickOption: React.FC<OptionProps> = ({ onClick }) => (
</Tooltip>
);
-type DownloadOptionProps = OptionProps & {
- isDownloadInProgress?: () => boolean;
-};
-
-const DownloadOption: React.FC<
- React.PropsWithChildren<DownloadOptionProps>
-> = ({ isDownloadInProgress, onClick, children }) => (
- <OverflowMenuOption
- startIcon={
- isDownloadInProgress?.() ? (
- <ActivityIndicator size="20px" sx={{ cursor: "not-allowed" }} />
- ) : (
- <DownloadIcon />
- )
- }
- onClick={onClick}
- >
- {children}
- </OverflowMenuOption>
-);
-
interface CollectionSortOrderMenuProps {
open: boolean;
onClose: () => void;