π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi6830ace1cef0
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsxindex 3e840eaa03..7aee04f44d 100644--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx@@ -8,6 +8,7 @@ import {FluidContainer,SpaceBetweenFlex,} from "@ente/shared/components/Container";+import { getData, LS_KEYS } from "@ente/shared/storage/localStorage";import ArrowForward from "@mui/icons-material/ArrowForward";import ChevronRight from "@mui/icons-material/ChevronRight";import Close from "@mui/icons-material/Close";@@ -34,7 +35,7 @@ import billingService, { type PlansResponse } from "services/billingService";import { getFamilyPortalRedirectURL } from "services/userService";import { Plan, PLAN_PERIOD, Subscription } from "types/billing";import { SetLoading } from "types/gallery";-import { BonusData } from "types/user";+import { BonusData, UserDetails } from "types/user";import {activateSubscription,cancelSubscription,@@ -52,7 +53,6 @@ import {updatePaymentMethod,updateSubscription,} from "utils/billing";-import { getLocalUserDetails } from "utils/user";import { getTotalFamilyUsage, isPartOfFamily } from "utils/user/family";interface PlanSelectorProps {@@ -796,3 +796,7 @@ const ManageSubscriptionButton = ({ children, ...props }: ButtonProps) => (<FluidContainer>{children}</FluidContainer></Button>);++function getLocalUserDetails(): UserDetails {+ return getData(LS_KEYS.USER_DETAILS)?.value;+}diff --git a/web/apps/photos/src/utils/user/index.ts b/web/apps/photos/src/utils/user/index.tsdeleted file mode 100644index 7404fb5887..0000000000--- a/web/apps/photos/src/utils/user/index.ts+++ /dev/null@@ -1,6 +0,0 @@-import { getData, LS_KEYS } from "@ente/shared/storage/localStorage";-import { UserDetails } from "types/user";--export function getLocalUserDetails(): UserDetails {- return getData(LS_KEYS.USER_DETAILS)?.value;-}