From 15370fa731c2d05d85695414022797f289a58604 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 21 Sep 2024 07:29:20 +0530 Subject: [PATCH] Rename Fin --- .../Collections/CollectionInfoWithOptions.tsx | 10 ++-------- .../Collections/CollectionShare/sharingDetails.tsx | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) 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);