mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +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 EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||
import {
|
||||
DESKTOP_ROADMAP_URL,
|
||||
WEB_ROADMAP_URL,
|
||||
} from "@ente/shared/constants/urls";
|
||||
import { Typography } from "@mui/material";
|
||||
import { EnteMenuItem } from "components/Menu/EnteMenuItem";
|
||||
import { NoStyleAnchor } from "components/pages/sharedAlbum/GoToEnte";
|
||||
@ -20,17 +16,12 @@ export default function HelpSection() {
|
||||
const { setDialogMessage } = useContext(AppContext);
|
||||
const { openExportModal } = useContext(GalleryContext);
|
||||
|
||||
async function openRoadmap() {
|
||||
let roadmapURL: string;
|
||||
if (isElectron()) {
|
||||
roadmapURL = DESKTOP_ROADMAP_URL;
|
||||
} else {
|
||||
roadmapURL = WEB_ROADMAP_URL;
|
||||
}
|
||||
openLink(roadmapURL, true);
|
||||
}
|
||||
const openRoadmap = () =>
|
||||
openLink("https://github.com/ente-io/ente/discussions", true);
|
||||
|
||||
function handleExportOpen() {
|
||||
const contactSupport = () => openLink("mailto:support@ente.io", true);
|
||||
|
||||
function openExport() {
|
||||
if (isElectron()) {
|
||||
openExportModal();
|
||||
} else {
|
||||
@ -46,7 +37,7 @@ export default function HelpSection() {
|
||||
variant="secondary"
|
||||
/>
|
||||
<EnteMenuItem
|
||||
onClick={() => openLink("mailto:support@ente.io", true)}
|
||||
onClick={contactSupport}
|
||||
labelComponent={
|
||||
<NoStyleAnchor href="mailto:support@ente.io">
|
||||
<Typography fontWeight={"bold"}>
|
||||
@ -57,7 +48,7 @@ export default function HelpSection() {
|
||||
variant="secondary"
|
||||
/>
|
||||
<EnteMenuItem
|
||||
onClick={handleExportOpen}
|
||||
onClick={openExport}
|
||||
label={t("EXPORT")}
|
||||
endIcon={
|
||||
exportService.isExportInProgress() && (
|
||||
|
@ -10,8 +10,3 @@ export const SUPPORT_EMAIL = "support@ente.io";
|
||||
export const FEEDBACK_EMAIL = "feedback@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