Manav Rathi 1 yıl önce
ebeveyn
işleme
cb6cfee9a3

+ 1 - 2
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"
                                                 />
                                             ),

+ 0 - 6
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;

+ 7 - 5
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 => ({

+ 0 - 2
web/packages/shared/constants/urls.ts

@@ -7,8 +7,6 @@ export const FACE_SEARCH_PRIVACY_POLICY_LINK =
 
 export const SUPPORT_EMAIL = "support@ente.io";
 
-export const APP_DOWNLOAD_URL = "https://ente.io/download/desktop";
-
 export const FEEDBACK_EMAIL = "feedback@ente.io";
 
 export const DELETE_ACCOUNT_EMAIL = "account-deletion@ente.io";