Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathicb6cfee9a390
diff --git a/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx b/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx
index aa01477752..d85fc66267 100644
--- a/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx
+++ b/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx
@@ -2,7 +2,6 @@ import { Dialog, DialogContent, Link } from "@mui/material";
import { t } from "i18next";
import { dialogCloseHandler } from "@ente/shared/components/DialogBox/TitleWithCloseButton";
-import { APP_DOWNLOAD_URL } from "@ente/shared/constants/urls";
import { UPLOAD_RESULT, UPLOAD_STAGES } from "constants/upload";
import UploadProgressContext from "contexts/uploadProgress";
import { useContext, useEffect, useState } from "react";
@@ -84,7 +83,7 @@ export function UploadProgressDialog() {
components={{
a: (
<Link
- href={APP_DOWNLOAD_URL}
+ href="https://ente.io/download/desktop"
target="_blank"
/>
),
diff --git a/web/apps/photos/src/utils/common/index.ts b/web/apps/photos/src/utils/common/index.ts
index ee0acf4761..059dfed2be 100644
--- a/web/apps/photos/src/utils/common/index.ts
+++ b/web/apps/photos/src/utils/common/index.ts
@@ -1,9 +1,3 @@
-import { APP_DOWNLOAD_URL } from "@ente/shared/constants/urls";
-
-export function downloadApp() {
- openLink(APP_DOWNLOAD_URL, true);
-}
-
export function initiateEmail(email: string) {
const a = document.createElement("a");
a.href = "mailto:" + email;
diff --git a/web/apps/photos/src/utils/ui/index.tsx b/web/apps/photos/src/utils/ui/index.tsx
index 1b938fb033..75b0cd23dc 100644
--- a/web/apps/photos/src/utils/ui/index.tsx
+++ b/web/apps/photos/src/utils/ui/index.tsx
@@ -1,16 +1,16 @@
-import { DialogBoxAttributes } from "@ente/shared/components/DialogBox/types";
-import AutoAwesomeOutlinedIcon from "@mui/icons-material/AutoAwesomeOutlined";
-import { t } from "i18next";
-import { downloadApp } from "utils/common";
-
import { logoutUser } from "@ente/accounts/services/user";
+import { DialogBoxAttributes } from "@ente/shared/components/DialogBox/types";
import ElectronAPIs from "@ente/shared/electron";
import { AppUpdateInfo } from "@ente/shared/electron/types";
+import AutoAwesomeOutlinedIcon from "@mui/icons-material/AutoAwesomeOutlined";
import InfoOutlined from "@mui/icons-material/InfoRounded";
import { Link } from "@mui/material";
import { OPEN_STREET_MAP_LINK } from "components/Sidebar/EnableMap";
+import { t } from "i18next";
import { Trans } from "react-i18next";
import { Subscription } from "types/billing";
+import { openLink } from "utils/common";
+
export const getDownloadAppMessage = (): DialogBoxAttributes => {
return {
title: t("DOWNLOAD_APP"),
@@ -27,6 +27,8 @@ export const getDownloadAppMessage = (): DialogBoxAttributes => {
};
};
+const downloadApp = () => openLink("https://ente.io/download/desktop", true);
+
export const getTrashFilesMessage = (
deleteFileHelper,
): DialogBoxAttributes => ({
diff --git a/web/packages/shared/constants/urls.ts b/web/packages/shared/constants/urls.ts
index 747e1fa221..9802e5ed4d 100644
--- a/web/packages/shared/constants/urls.ts
+++ b/web/packages/shared/constants/urls.ts
@@ -7,8 +7,6 @@ export const FACE_SEARCH_PRIVACY_POLICY_LINK =
export const SUPPORT_EMAIL = "[email protected]";
-export const APP_DOWNLOAD_URL = "https://ente.io/download/desktop";
-
export const FEEDBACK_EMAIL = "[email protected]";
export const DELETE_ACCOUNT_EMAIL = "[email protected]";