mirror of
https://github.com/ente-io/ente.git
synced 2025-05-24 20:19:17 +00:00
Inline
This commit is contained in:
parent
60321111c2
commit
cb6cfee9a3
@ -2,7 +2,6 @@ import { Dialog, DialogContent, Link } from "@mui/material";
|
|||||||
import { t } from "i18next";
|
import { t } from "i18next";
|
||||||
|
|
||||||
import { dialogCloseHandler } from "@ente/shared/components/DialogBox/TitleWithCloseButton";
|
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 { UPLOAD_RESULT, UPLOAD_STAGES } from "constants/upload";
|
||||||
import UploadProgressContext from "contexts/uploadProgress";
|
import UploadProgressContext from "contexts/uploadProgress";
|
||||||
import { useContext, useEffect, useState } from "react";
|
import { useContext, useEffect, useState } from "react";
|
||||||
@ -84,7 +83,7 @@ export function UploadProgressDialog() {
|
|||||||
components={{
|
components={{
|
||||||
a: (
|
a: (
|
||||||
<Link
|
<Link
|
||||||
href={APP_DOWNLOAD_URL}
|
href="https://ente.io/download/desktop"
|
||||||
target="_blank"
|
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) {
|
export function initiateEmail(email: string) {
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = "mailto:" + email;
|
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 { logoutUser } from "@ente/accounts/services/user";
|
||||||
|
import { DialogBoxAttributes } from "@ente/shared/components/DialogBox/types";
|
||||||
import ElectronAPIs from "@ente/shared/electron";
|
import ElectronAPIs from "@ente/shared/electron";
|
||||||
import { AppUpdateInfo } from "@ente/shared/electron/types";
|
import { AppUpdateInfo } from "@ente/shared/electron/types";
|
||||||
|
import AutoAwesomeOutlinedIcon from "@mui/icons-material/AutoAwesomeOutlined";
|
||||||
import InfoOutlined from "@mui/icons-material/InfoRounded";
|
import InfoOutlined from "@mui/icons-material/InfoRounded";
|
||||||
import { Link } from "@mui/material";
|
import { Link } from "@mui/material";
|
||||||
import { OPEN_STREET_MAP_LINK } from "components/Sidebar/EnableMap";
|
import { OPEN_STREET_MAP_LINK } from "components/Sidebar/EnableMap";
|
||||||
|
import { t } from "i18next";
|
||||||
import { Trans } from "react-i18next";
|
import { Trans } from "react-i18next";
|
||||||
import { Subscription } from "types/billing";
|
import { Subscription } from "types/billing";
|
||||||
|
import { openLink } from "utils/common";
|
||||||
|
|
||||||
export const getDownloadAppMessage = (): DialogBoxAttributes => {
|
export const getDownloadAppMessage = (): DialogBoxAttributes => {
|
||||||
return {
|
return {
|
||||||
title: t("DOWNLOAD_APP"),
|
title: t("DOWNLOAD_APP"),
|
||||||
@ -27,6 +27,8 @@ export const getDownloadAppMessage = (): DialogBoxAttributes => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const downloadApp = () => openLink("https://ente.io/download/desktop", true);
|
||||||
|
|
||||||
export const getTrashFilesMessage = (
|
export const getTrashFilesMessage = (
|
||||||
deleteFileHelper,
|
deleteFileHelper,
|
||||||
): DialogBoxAttributes => ({
|
): DialogBoxAttributes => ({
|
||||||
|
@ -7,8 +7,6 @@ export const FACE_SEARCH_PRIVACY_POLICY_LINK =
|
|||||||
|
|
||||||
export const SUPPORT_EMAIL = "support@ente.io";
|
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 FEEDBACK_EMAIL = "feedback@ente.io";
|
||||||
|
|
||||||
export const DELETE_ACCOUNT_EMAIL = "account-deletion@ente.io";
|
export const DELETE_ACCOUNT_EMAIL = "account-deletion@ente.io";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user