mirror of
https://github.com/ente-io/ente.git
synced 2025-08-10 16:32:39 +00:00
Inline
This commit is contained in:
parent
d992085dbd
commit
75d041dd9c
@ -2,10 +2,6 @@ import { t } from "i18next";
|
|||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
|
|
||||||
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||||
import {
|
|
||||||
DESKTOP_ROADMAP_URL,
|
|
||||||
WEB_ROADMAP_URL,
|
|
||||||
} from "@ente/shared/constants/urls";
|
|
||||||
import { Typography } from "@mui/material";
|
import { Typography } from "@mui/material";
|
||||||
import { EnteMenuItem } from "components/Menu/EnteMenuItem";
|
import { EnteMenuItem } from "components/Menu/EnteMenuItem";
|
||||||
import { NoStyleAnchor } from "components/pages/sharedAlbum/GoToEnte";
|
import { NoStyleAnchor } from "components/pages/sharedAlbum/GoToEnte";
|
||||||
@ -20,17 +16,12 @@ export default function HelpSection() {
|
|||||||
const { setDialogMessage } = useContext(AppContext);
|
const { setDialogMessage } = useContext(AppContext);
|
||||||
const { openExportModal } = useContext(GalleryContext);
|
const { openExportModal } = useContext(GalleryContext);
|
||||||
|
|
||||||
async function openRoadmap() {
|
const openRoadmap = () =>
|
||||||
let roadmapURL: string;
|
openLink("https://github.com/ente-io/ente/discussions", true);
|
||||||
if (isElectron()) {
|
|
||||||
roadmapURL = DESKTOP_ROADMAP_URL;
|
|
||||||
} else {
|
|
||||||
roadmapURL = WEB_ROADMAP_URL;
|
|
||||||
}
|
|
||||||
openLink(roadmapURL, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleExportOpen() {
|
const contactSupport = () => openLink("mailto:support@ente.io", true);
|
||||||
|
|
||||||
|
function openExport() {
|
||||||
if (isElectron()) {
|
if (isElectron()) {
|
||||||
openExportModal();
|
openExportModal();
|
||||||
} else {
|
} else {
|
||||||
@ -46,7 +37,7 @@ export default function HelpSection() {
|
|||||||
variant="secondary"
|
variant="secondary"
|
||||||
/>
|
/>
|
||||||
<EnteMenuItem
|
<EnteMenuItem
|
||||||
onClick={() => openLink("mailto:support@ente.io", true)}
|
onClick={contactSupport}
|
||||||
labelComponent={
|
labelComponent={
|
||||||
<NoStyleAnchor href="mailto:support@ente.io">
|
<NoStyleAnchor href="mailto:support@ente.io">
|
||||||
<Typography fontWeight={"bold"}>
|
<Typography fontWeight={"bold"}>
|
||||||
@ -57,7 +48,7 @@ export default function HelpSection() {
|
|||||||
variant="secondary"
|
variant="secondary"
|
||||||
/>
|
/>
|
||||||
<EnteMenuItem
|
<EnteMenuItem
|
||||||
onClick={handleExportOpen}
|
onClick={openExport}
|
||||||
label={t("EXPORT")}
|
label={t("EXPORT")}
|
||||||
endIcon={
|
endIcon={
|
||||||
exportService.isExportInProgress() && (
|
exportService.isExportInProgress() && (
|
||||||
|
@ -10,8 +10,3 @@ export const SUPPORT_EMAIL = "support@ente.io";
|
|||||||
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";
|
||||||
|
|
||||||
export const WEB_ROADMAP_URL = "https://github.com/ente-io/ente/discussions";
|
|
||||||
|
|
||||||
export const DESKTOP_ROADMAP_URL =
|
|
||||||
"https://github.com/ente-io/ente/discussions";
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user