Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web][photos] Restore original gallery header name

AswinAsok9ce621f7a109
diff --git a/web/apps/photos/src/components/collections/GalleryListHeader.tsx b/web/apps/photos/src/components/collections/GalleryBarAndListHeader.tsx
similarity index 98%
rename from web/apps/photos/src/components/collections/GalleryListHeader.tsx
rename to web/apps/photos/src/components/collections/GalleryBarAndListHeader.tsx
index 4101f51b54..78d24700e3 100644
--- a/web/apps/photos/src/components/collections/GalleryListHeader.tsx
+++ b/web/apps/photos/src/components/collections/GalleryBarAndListHeader.tsx
@@ -25,7 +25,7 @@ import {
type CollectionHeaderProps,
} from "./CollectionHeader";
-type GalleryListHeaderProps = {
+type GalleryBarAndListHeaderProps = {
mode: GalleryBarMode;
shouldHide: boolean;
barCollectionSummaries: CollectionSummaries;
@@ -51,7 +51,9 @@ type GalleryListHeaderProps = {
"user" | "emailByUserID" | "shareSuggestionEmails" | "setBlockingLoad"
>;
-export const GalleryListHeader: React.FC<GalleryListHeaderProps> = ({
+export const GalleryBarAndListHeader: React.FC<
+ GalleryBarAndListHeaderProps
+> = ({
shouldHide,
mode,
user,
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index f49b69ef08..30e86f0ff2 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -27,7 +27,7 @@ import {
EditAlbumDetailsDialog,
type AlbumDetails,
} from "@/components/collections/EditAlbumDetailsDialog";
-import { GalleryListHeader } from "@/components/collections/GalleryListHeader";
+import { GalleryBarAndListHeader } from "@/components/collections/GalleryBarAndListHeader";
import { slideshowFiles } from "@/components/collections/album-slideshow";
import {
GalleryEmptyState,
@@ -2253,7 +2253,7 @@ const Page: React.FC = () => {
>
{!isCleanupViewOpen && (
<>
- <GalleryListHeader
+ <GalleryBarAndListHeader
{...{
user,
activeCollection,
diff --git a/web/checks/lint-exceptions/suppressions.json b/web/checks/lint-exceptions/suppressions.json
index 92407e9a0b..c78b9ec55a 100644
--- a/web/checks/lint-exceptions/suppressions.json
+++ b/web/checks/lint-exceptions/suppressions.json
@@ -14,7 +14,7 @@
"web/apps/photos/src/components/collections/CollectionShare.tsx": [
"@typescript-eslint/no-unnecessary-condition"
],
- "web/apps/photos/src/components/collections/GalleryListHeader.tsx": [
+ "web/apps/photos/src/components/collections/GalleryBarAndListHeader.tsx": [
"react-hooks/exhaustive-deps"
],
"web/apps/photos/src/components/PlanSelector.tsx": [