diff --git a/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx b/web/apps/photos/src/components/Upload/UploadProgress/dialog.tsx index aa0147775..d85fc6626 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: ( ), diff --git a/web/apps/photos/src/utils/common/index.ts b/web/apps/photos/src/utils/common/index.ts index ee0acf476..059dfed2b 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 1b938fb03..75b0cd23d 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 747e1fa22..9802e5ed4 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 = "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";