Skip to content

armgit / ente

Public Imported from GitHub
0

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

tsc

Manav Rathi5690d613bbf1
diff --git a/web/apps/auth/src/pages/change-password.tsx b/web/apps/auth/src/pages/change-password.tsx
index f84efa4c68..cc0bfe4722 100644
--- a/web/apps/auth/src/pages/change-password.tsx
+++ b/web/apps/auth/src/pages/change-password.tsx
@@ -7,6 +7,6 @@ import React, { useContext } from "react";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <ChangePasswordPage appContext={appContext} appName={APPS.AUTH} />;
-}
+};
export default Page;
diff --git a/web/apps/auth/src/pages/two-factor/setup.tsx b/web/apps/auth/src/pages/two-factor/setup.tsx
index 3b3fe7d932..5ef376776b 100644
--- a/web/apps/auth/src/pages/two-factor/setup.tsx
+++ b/web/apps/auth/src/pages/two-factor/setup.tsx
@@ -7,6 +7,6 @@ import React, { useContext } from "react";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <TwoFactorSetupPage appContext={appContext} appName={APPS.AUTH} />;
-}
+};
export default Page;
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
index a59c36b146..c01ffe48bb 100644
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/index.tsx
@@ -157,9 +157,9 @@ const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({
}) => {
const galleryContext = useContext(GalleryContext);
- const [userDetails, setUserDetails] = useLocalState<UserDetails>(
- LS_KEYS.USER_DETAILS,
- );
+ const [userDetails, setUserDetails] = useLocalState<
+ UserDetails | undefined
+ >(LS_KEYS.USER_DETAILS, undefined);
const [memberSubscriptionManageView, setMemberSubscriptionManageView] =
useState(false);
@@ -198,6 +198,7 @@ const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({
openMemberSubscriptionManage();
} else {
if (
+ userDetails &&
hasStripeSubscription(userDetails.subscription) &&
isSubscriptionPastDue(userDetails.subscription)
) {
diff --git a/web/packages/shared/components/DialogBoxV2/index.tsx b/web/packages/shared/components/DialogBoxV2/index.tsx
index 3f318594ee..a0e226c87f 100644
--- a/web/packages/shared/components/DialogBoxV2/index.tsx
+++ b/web/packages/shared/components/DialogBoxV2/index.tsx
@@ -96,7 +96,9 @@ export default function DialogBoxV2({
size="large"
color={attributes.proceed?.variant}
onClick={async () => {
- await attributes.proceed?.action(setLoading);
+ await attributes.proceed?.action(
+ setLoading,
+ );
onClose();
}}
diff --git a/web/packages/shared/themes/palette/index.tsx b/web/packages/shared/themes/palette/index.tsx
index 14d33eb748..81d6cd5988 100644
--- a/web/packages/shared/themes/palette/index.tsx
+++ b/web/packages/shared/themes/palette/index.tsx
@@ -1,6 +1,6 @@
+import { ensure } from "@/utils/ensure";
import type { PaletteOptions, ThemeColorsOptions } from "@mui/material";
import { THEME_COLOR } from "../constants";
-import { ensure } from "@/utils/ensure";
export const getPallette = (
themeColor: THEME_COLOR,