Rename Fin

This commit is contained in:
Manav Rathi
2024-09-21 07:29:20 +05:30
parent b65a7055c1
commit 15370fa731
2 changed files with 2 additions and 9 deletions

View File

@@ -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";

View File

@@ -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);