Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(appLock):removing-feature-flag

Aswin Asok966fecf07135
diff --git a/web/apps/photos/.env b/web/apps/photos/.env
index 0f355bb6bc..ff749bb0a6 100644
--- a/web/apps/photos/.env
+++ b/web/apps/photos/.env
@@ -80,4 +80,3 @@
# NEXT_PUBLIC_ENTE_TEST_EXPECTED_JSON = {}
NEXT_TELEMETRY_DISABLED = 1
-NEXT_PUBLIC_ENTE_ENABLE_APP_LOCK = true
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx
index 148573e656..84fd2a039e 100644
--- a/web/apps/photos/src/components/Sidebar.tsx
+++ b/web/apps/photos/src/components/Sidebar.tsx
@@ -245,9 +245,6 @@ type FreeUpSpaceAction = Extract<
const appLockReauthenticationCancelledMessage =
"app_lock_reauthentication_cancelled";
-const isAppLockFeatureEnabled =
- process.env.NEXT_PUBLIC_ENTE_ENABLE_APP_LOCK == "true";
-
const isReauthenticationCancellation = (error: unknown) =>
error == undefined ||
(error instanceof Error &&
@@ -1116,7 +1113,7 @@ const Account: React.FC<AccountProps> = ({
onClick={handleActiveSessions}
/>
</RowButtonGroup>
- {isDesktop && isAppLockFeatureEnabled && (
+ {isDesktop && (
<DesktopAppLockSettings
onAuthenticateUser={onAuthenticateUser}
onRootClose={onRootClose}
@@ -1176,14 +1173,14 @@ const DesktopAppLockSettings: React.FC<
}
}, [onAuthenticateUser, show]);
- return isAppLockFeatureEnabled ? (
+ return (
<>
<RowButtonGroup>
<RowButton label={t("app_lock")} onClick={handleOpen} />
</RowButtonGroup>
<AppLockSettings {...props} onRootClose={onRootClose} />
</>
- ) : null;
+ );
};
type PreferencesProps = NestedSidebarDrawerVisibilityProps & {