Inline
This commit is contained in:
parent
60321111c2
commit
cb6cfee9a3
4 changed files with 8 additions and 15 deletions
|
@ -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"
|
||||
/>
|
||||
),
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 => ({
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue