π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
rename
Manav Rathi51f64799aa65
diff --git a/web/apps/photos/src/components/Collections/CollectionListHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxsimilarity index 99%rename from web/apps/photos/src/components/Collections/CollectionListHeader.tsxrename to web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 58065aaddc..f3adf25f9b 100644--- a/web/apps/photos/src/components/Collections/CollectionListHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -57,7 +57,7 @@ import {} from "utils/collection";import { isArchivedCollection, isPinnedCollection } from "utils/magicMetadata";-interface CollectionListHeaderProps {+interface CollectionHeaderProps {collectionSummary: CollectionSummary;activeCollection: Collection;setActiveCollectionID: (collectionID: number) => void;@@ -68,7 +68,11 @@ interface CollectionListHeaderProps {setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator;}-export const CollectionListHeader: React.FC<CollectionListHeaderProps> = ({+/**+ * A header shown at the top of the list of photos in the gallery, when the+ * gallery is showing a collection.+ */+export const CollectionHeader: React.FC<CollectionHeaderProps> = ({collectionSummary,...rest}) => {@@ -117,7 +121,7 @@ const shouldShowOptions = (type: CollectionSummaryType) =>type != "all" && type != "archive";type CollectionOptionsProps = Omit<- CollectionListHeaderProps,+ CollectionHeaderProps,"collectionSummary"> & {collectionSummaryType: CollectionSummaryType;diff --git a/web/apps/photos/src/components/Collections/index.tsx b/web/apps/photos/src/components/Collections/index.tsxindex 0b003cdd19..93e0529c7f 100644--- a/web/apps/photos/src/components/Collections/index.tsx+++ b/web/apps/photos/src/components/Collections/index.tsx@@ -15,7 +15,6 @@ import {removeData,} from "@ente/shared/storage/localStorage";import AllCollections from "components/Collections/AllCollections";-import { CollectionListHeader } from "components/Collections/CollectionListHeader";import { SetCollectionNamerAttributes } from "components/Collections/CollectionNamer";import CollectionShare from "components/Collections/CollectionShare";import { ITEM_TYPE, TimeStampListItem } from "components/PhotoList";@@ -34,6 +33,7 @@ import {isFilesDownloadCompleted,} from "../FilesDownloadProgress";import { AlbumCastDialog } from "./AlbumCastDialog";+import { CollectionHeader } from "./CollectionHeader";type CollectionsProps = Omit<GalleryBarImplProps,@@ -126,7 +126,7 @@ export const Collections: React.FC<CollectionsProps> = ({setPhotoListHeader({item: (- <CollectionListHeader+ <CollectionHeader{...{activeCollection,setActiveCollectionID,