Manav Rathi 1 year ago
parent
commit
5690d613bb

+ 1 - 1
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;

+ 1 - 1
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;

+ 4 - 3
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)
             ) {

+ 3 - 1
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();
                                 }}

+ 1 - 1
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,