Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Migrate album overview confirmation

AswinAsoka309da8d9445
diff --git a/web/apps/photos/src/components/gallery/AlbumsOverview.tsx b/web/apps/photos/src/components/gallery/AlbumsOverview.tsx
index 60e3801984..5ae45efba9 100644
--- a/web/apps/photos/src/components/gallery/AlbumsOverview.tsx
+++ b/web/apps/photos/src/components/gallery/AlbumsOverview.tsx
@@ -1,6 +1,5 @@
import { useDeleteEmptyAlbums } from "@/components/Collections/useDeleteEmptyAlbums";
import type { RemotePullOpts } from "@/components/gallery";
-import { TrashFilesDialog } from "@/components/gallery/TrashFilesDialog";
import type { AlbumFilter } from "@/utils/album-filters";
import { Delete02Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -64,11 +63,8 @@ export const AlbumsOverview = ({
return () => observer.disconnect();
}, [listElement]);
const normalizedSearchQuery = searchQuery.trim().toLowerCase();
- const {
- handleDeleteEmptyAlbums,
- hasEnoughEmptyAlbums,
- deleteEmptyAlbumsDialogProps,
- } = useDeleteEmptyAlbums(albums, onRemotePull);
+ const { handleDeleteEmptyAlbums, hasEnoughEmptyAlbums } =
+ useDeleteEmptyAlbums(albums, onRemotePull);
const showDeleteEmptyAlbums =
filter == "empty-albums" &&
hasEnoughEmptyAlbums &&
@@ -91,7 +87,6 @@ export const AlbumsOverview = ({
return (
<>
- <TrashFilesDialog {...deleteEmptyAlbumsDialogProps} />
<Stack
sx={{
flex: 1,