π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Swap
Manav Rathi07e25d982ebc
diff --git a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/downloadAccess.tsx b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/downloadAccess.tsxindex 9082e9e838..03889d99f3 100644--- a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/downloadAccess.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/downloadAccess.tsx@@ -3,10 +3,9 @@ import type {PublicURL,UpdatePublicURL,} from "@/media/collection";-import { AppContext } from "@/new/photos/types/context";+import { useAppContext } from "@/new/photos/types/context";import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";import { t } from "i18next";-import { useContext } from "react";import { Trans } from "react-i18next";interface Iprops {publicShareProp: PublicURL;@@ -19,7 +18,7 @@ export function ManageDownloadAccess({updatePublicShareURLHelper,collection,}: Iprops) {- const appContext = useContext(AppContext);+ const { showMiniDialog } = useAppContext();const handleFileDownloadSetting = () => {if (publicShareProp.enableDownload) {@@ -33,18 +32,17 @@ export function ManageDownloadAccess({};const disableFileDownload = () => {- appContext.setDialogMessage({+ showMiniDialog({title: t("DISABLE_FILE_DOWNLOAD"),- content: <Trans i18nKey={"DISABLE_FILE_DOWNLOAD_MESSAGE"} />,- close: { text: t("cancel") },- proceed: {+ message: <Trans i18nKey={"DISABLE_FILE_DOWNLOAD_MESSAGE"} />,+ continue: {text: t("disable"),+ color: "critical",action: () =>updatePublicShareURLHelper({collectionID: collection.id,enableDownload: false,}),- variant: "critical",},});};diff --git a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/linkPassword/index.tsx b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/linkPassword/index.tsxindex a808c7f429..86f8a650fe 100644--- a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/linkPassword/index.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/manage/linkPassword/index.tsx@@ -3,10 +3,10 @@ import type {PublicURL,UpdatePublicURL,} from "@/media/collection";-import { AppContext } from "@/new/photos/types/context";+import { useAppContext } from "@/new/photos/types/context";import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";import { t } from "i18next";-import { useContext, useState } from "react";+import { useState } from "react";import { PublicLinkSetPassword } from "./setPassword";interface Iprops {@@ -20,7 +20,7 @@ export function ManageLinkPassword({publicShareProp,updatePublicShareURLHelper,}: Iprops) {- const appContext = useContext(AppContext);+ const { showMiniDialog } = useAppContext();const [changePasswordView, setChangePasswordView] = useState(false);const closeConfigurePassword = () => setChangePasswordView(false);@@ -34,18 +34,17 @@ export function ManageLinkPassword({};const confirmDisablePublicUrlPassword = async () => {- appContext.setDialogMessage({+ showMiniDialog({title: t("DISABLE_PASSWORD"),- content: t("DISABLE_PASSWORD_MESSAGE"),- close: { text: t("cancel") },- proceed: {+ message: t("DISABLE_PASSWORD_MESSAGE"),+ continue: {text: t("disable"),+ color: "critical",action: () =>updatePublicShareURLHelper({collectionID: collection.id,disablePassword: true,}),- variant: "critical",},});};