Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename Fin

Manav Rathi15370fa731c2
diff --git a/web/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx b/web/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
index c6cb2e4caf..e64cf3d51f 100644
--- a/web/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
@@ -72,11 +72,5 @@ export default function CollectionInfoWithOptions({
);
}
-const OPTIONS_NOT_HAVING_COLLECTION_TYPES = new Set([
- CollectionSummaryType.all,
- CollectionSummaryType.archive,
-]);
-
-const shouldShowOptions = (type: CollectionSummaryType) => {
- return !OPTIONS_NOT_HAVING_COLLECTION_TYPES.has(type);
-};
+const shouldShowOptions = (type: CollectionSummaryType) =>
+ type != "all" && type != "archive";
diff --git a/web/apps/photos/src/components/Collections/CollectionShare/sharingDetails.tsx b/web/apps/photos/src/components/Collections/CollectionShare/sharingDetails.tsx
index 6ac26cf3aa..1f8171dc57 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare/sharingDetails.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare/sharingDetails.tsx
@@ -13,7 +13,6 @@ import Avatar from "components/pages/gallery/Avatar";
import { t } from "i18next";
import { GalleryContext } from "pages/gallery";
import { useContext } from "react";
-import { CollectionSummaryType } from "types/collection";
export default function SharingDetails({ collection, type }) {
const galleryContext = useContext(GalleryContext);