Rename Fin
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user