π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
person header
Manav Rathie10613fa0f14
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsxindex 69c211aeb8..337aa6823a 100644--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx@@ -1,4 +1,5 @@import type { Collection } from "@/media/collection";+import { PersonListHeader } from "@/new/photos/components/Gallery";import {GalleryBarImpl,type GalleryBarImplProps,@@ -34,6 +35,7 @@ import {} from "../FilesDownloadProgress";import { AlbumCastDialog } from "./AlbumCastDialog";import { CollectionHeader } from "./CollectionHeader";+import { ensure } from "@/utils/ensure";type CollectionsProps = Omit<GalleryBarImplProps,@@ -142,22 +144,27 @@ export const GalleryBarAndListHeader: React.FC<CollectionsProps> = ({if (shouldHide) return;setPhotoListHeader({- item: (- <CollectionHeader- {...{- activeCollection,- setActiveCollectionID,- setCollectionNamerAttributes,- setFilesDownloadProgressAttributesCreator,- isActiveCollectionDownloadInProgress,- }}- collectionSummary={toShowCollectionSummaries.get(- activeCollectionID,- )}- onCollectionShare={() => setOpenCollectionShareView(true)}- onCollectionCast={() => setOpenAlbumCastDialog(true)}- />- ),+ item:+ mode != "people" ? (+ <CollectionHeader+ {...{+ activeCollection,+ setActiveCollectionID,+ setCollectionNamerAttributes,+ setFilesDownloadProgressAttributesCreator,+ isActiveCollectionDownloadInProgress,+ }}+ collectionSummary={toShowCollectionSummaries.get(+ activeCollectionID,+ )}+ onCollectionShare={() =>+ setOpenCollectionShareView(true)+ }+ onCollectionCast={() => setOpenAlbumCastDialog(true)}+ />+ ) : (+ <PersonListHeader person={ensure(activePerson)} />+ ),itemType: ITEM_TYPE.HEADER,height: 68,});