Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rearrange

Manav Rathi4780f545fe9c
diff --git a/web/apps/photos/src/components/Collections/CollectionListBar.tsx b/web/apps/photos/src/components/Collections/CollectionListBar.tsx
index 3c298e1e6c..09b55e0dfa 100644
--- a/web/apps/photos/src/components/Collections/CollectionListBar.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionListBar.tsx
@@ -34,7 +34,11 @@ import React, {
} from "react";
import AutoSizer from "react-virtualized-auto-sizer";
import { FixedSizeList, ListChildComponentProps, areEqual } from "react-window";
-import type { GalleryBarMode } from ".";
+
+/**
+ * Specifies what the bar is displaying currently.
+ */
+export type GalleryBarMode = "albums" | "hidden-albums" | "people";
export interface CollectionListBarProps {
/**
@@ -84,7 +88,7 @@ export interface CollectionListBarProps {
onSelectPerson: (person: Person) => void;
}
-// TODO-Cluster Rename me to GalleryBar
+// TODO-Cluster Rename me to GalleryBarImpl
export const CollectionListBar: React.FC<CollectionListBarProps> = ({
mode,
setMode,
diff --git a/web/apps/photos/src/components/Collections/index.tsx b/web/apps/photos/src/components/Collections/index.tsx
index 13f77e9f1b..c58ea50c13 100644
--- a/web/apps/photos/src/components/Collections/index.tsx
+++ b/web/apps/photos/src/components/Collections/index.tsx
@@ -13,7 +13,10 @@ import {
} from "@ente/shared/storage/localStorage";
import AllCollections from "components/Collections/AllCollections";
import CollectionInfoWithOptions from "components/Collections/CollectionInfoWithOptions";
-import { CollectionListBar } from "components/Collections/CollectionListBar";
+import {
+ CollectionListBar,
+ type GalleryBarMode,
+} from "components/Collections/CollectionListBar";
import { SetCollectionNamerAttributes } from "components/Collections/CollectionNamer";
import CollectionShare from "components/Collections/CollectionShare";
import { ITEM_TYPE, TimeStampListItem } from "components/PhotoList";
@@ -33,11 +36,6 @@ import {
} from "../FilesDownloadProgress";
import { AlbumCastDialog } from "./AlbumCastDialog";
-/**
- * Specifies what the bar is displaying currently.
- */
-export type GalleryBarMode = "albums" | "hidden-albums" | "people";
-
interface CollectionsProps {
/** `true` if the bar should be hidden altogether. */
shouldHide: boolean;
@@ -58,6 +56,7 @@ interface CollectionsProps {
setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator;
}
+// TODO-Cluster Rename me to GalleryBar and subsume GalleryBarImpl
export const Collections: React.FC<CollectionsProps> = ({
shouldHide,
mode,
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 334bb575b0..1f83172aac 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -59,7 +59,8 @@ import MenuIcon from "@mui/icons-material/Menu";
import type { ButtonProps, IconButtonProps } from "@mui/material";
import { Box, Button, IconButton, Typography, styled } from "@mui/material";
import AuthenticateUserModal from "components/AuthenticateUserModal";
-import { Collections, type GalleryBarMode } from "components/Collections";
+import { Collections } from "components/Collections";
+import type { GalleryBarMode } from "components/Collections/CollectionListBar";
import CollectionNamer, {
CollectionNamerAttributes,
} from "components/Collections/CollectionNamer";