import "./support.scss" import React from "react" import { observer } from "mobx-react" import { Icon } from "../icon" import { WizardLayout } from "../layout/wizard-layout" import { history } from "../../navigation" import { Trans } from "@lingui/macro" import { shell } from "electron" import { issuesTrackerUrl, slackUrl } from "../../../common/vars"; import { t } from "@lingui/macro"; import { _i18n } from "../../i18n"; @observer export class Support extends React.Component { async componentDidMount() { window.addEventListener('keydown', this.onEscapeKey); } componentWillUnmount() { window.removeEventListener('keydown', this.onEscapeKey); } onEscapeKey = (evt: KeyboardEvent) => { if (evt.code === "Escape") { evt.stopPropagation(); history.goBack(); } } render() { const header = ( <>
{_i18n._(t`Ask a question, see what's being discussed, join the conversation`)} shell.openExternal(slackUrl) }>here
{_i18n._(t`Review existing issues or open a new one`)} shell.openExternal(issuesTrackerUrl) }>here
TBD