Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor(photos):move-subscription-hook-into-gallery-hooks

Aswin Asok4d1c32c0b930
diff --git a/web/apps/photos/src/components/utils/use-subscription-completion-redirect.tsx b/web/apps/photos/src/components/gallery/hooks/use-subscription-completion-redirect.tsx
similarity index 100%
rename from web/apps/photos/src/components/utils/use-subscription-completion-redirect.tsx
rename to web/apps/photos/src/components/gallery/hooks/use-subscription-completion-redirect.tsx
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index d41dcafaff..bdcabf5ce5 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -47,6 +47,7 @@ import {
performCollectionOp,
showCollectionSummaryWithAuthentication,
} from "@/components/gallery/helpers";
+import { useSubscriptionCompletionRedirect } from "@/components/gallery/hooks/use-subscription-completion-redirect";
import {
useGalleryReducer,
type GalleryBarMode,
@@ -57,7 +58,6 @@ import {
notifyUnsupportedSharedFavoritesDialogAttributes,
trashFilesDialogAttributes,
} from "@/components/utils/dialog-attributes";
-import { useSubscriptionCompletionRedirect } from "@/components/utils/use-subscription-completion-redirect";
import exportService from "@/services/export";
import { processPendingAlbumJoin } from "@/services/join-album";
import {