Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix paths

Manav Rathic37c6fda9579
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
index ccc33f2efa..1fda3cff71 100644
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/index.tsx
@@ -20,7 +20,6 @@ import {
} from "@/new/photos/services/collection";
import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
import { isInternalUser } from "@/new/photos/services/settings";
-import { syncUserDetails } from "@/new/photos/services/user";
import {
familyAdminEmail,
hasExceededStorageQuota,
@@ -34,6 +33,7 @@ import {
isSubscriptionStripe,
leaveFamily,
redirectToCustomerPortal,
+ syncUserDetails,
userDetailsAddOnBonuses,
type UserDetails,
} from "@/new/photos/services/user-details";
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 9e671cc48b..dd03afa155 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -49,10 +49,8 @@ import type { SearchOption } from "@/new/photos/services/search/types";
import { initSettings } from "@/new/photos/services/settings";
import {
initUserDetailsOrTriggerSync,
- userDetailsSnapshot,
-} from "@/new/photos/services/user";
-import {
redirectToCustomerPortal,
+ userDetailsSnapshot,
verifyStripeSubscription,
} from "@/new/photos/services/user-details";
import { useAppContext } from "@/new/photos/types/context";
diff --git a/web/apps/photos/src/services/logout.ts b/web/apps/photos/src/services/logout.ts
index 3dbc63e6dd..12ddc6bf23 100644
--- a/web/apps/photos/src/services/logout.ts
+++ b/web/apps/photos/src/services/logout.ts
@@ -8,7 +8,7 @@ import DownloadManager from "@/new/photos/services/download";
import { logoutML, terminateMLWorker } from "@/new/photos/services/ml";
import { logoutSearch } from "@/new/photos/services/search";
import { logoutSettings } from "@/new/photos/services/settings";
-import { logoutUserDetails } from "@/new/photos/services/user";
+import { logoutUserDetails } from "@/new/photos/services/user-details";
import exportService from "./export";
/**
diff --git a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx
index 010bfbe1b6..df2ebebc9d 100644
--- a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx
+++ b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx
@@ -5,7 +5,7 @@ import {
SidebarDrawerTitlebar,
type NestedSidebarDrawerVisibilityProps,
} from "@/base/components/mui/SidebarDrawer";
-import { disable2FA, get2FAStatus } from "@/new/photos/services/user";
+import { disable2FA, get2FAStatus } from "@/new/photos/services/user-details";
import { useAppContext } from "@/new/photos/types/context";
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
diff --git a/web/packages/new/photos/components/utils/use-snapshot.ts b/web/packages/new/photos/components/utils/use-snapshot.ts
index fbcc5ab8e0..3cf14122aa 100644
--- a/web/packages/new/photos/components/utils/use-snapshot.ts
+++ b/web/packages/new/photos/components/utils/use-snapshot.ts
@@ -6,7 +6,10 @@ import {
peopleStateSubscribe,
} from "../../services/ml";
import { settingsSnapshot, settingsSubscribe } from "../../services/settings";
-import { userDetailsSnapshot, userDetailsSubscribe } from "../../services/user";
+import {
+ userDetailsSnapshot,
+ userDetailsSubscribe,
+} from "../../services/user-details";
/**
* A convenience hook that returns {@link settingsSnapshot}, and also