feat(faq): remove keyboard shortcuts button (#9342)
* feat(faq): remove keyboard shortcuts button Signed-off-by: Gustavo Santos <gefgu@hotmail.com> * Update HelpUserSettingsTab.tsx * delint --------- Signed-off-by: Gustavo Santos <gefgu@hotmail.com> Co-authored-by: Germain <germains@element.io> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8a97e5f351
commit
8924bd26fa
2 changed files with 1 additions and 17 deletions
|
@ -25,10 +25,6 @@ import Modal from "../../../../../Modal";
|
||||||
import PlatformPeg from "../../../../../PlatformPeg";
|
import PlatformPeg from "../../../../../PlatformPeg";
|
||||||
import UpdateCheckButton from "../../UpdateCheckButton";
|
import UpdateCheckButton from "../../UpdateCheckButton";
|
||||||
import BugReportDialog from "../../../dialogs/BugReportDialog";
|
import BugReportDialog from "../../../dialogs/BugReportDialog";
|
||||||
import { OpenToTabPayload } from "../../../../../dispatcher/payloads/OpenToTabPayload";
|
|
||||||
import { Action } from "../../../../../dispatcher/actions";
|
|
||||||
import { UserTab } from "../../../dialogs/UserTab";
|
|
||||||
import dis from "../../../../../dispatcher/dispatcher";
|
|
||||||
import CopyableText from "../../../elements/CopyableText";
|
import CopyableText from "../../../elements/CopyableText";
|
||||||
import SettingsTab from "../SettingsTab";
|
import SettingsTab from "../SettingsTab";
|
||||||
import { SettingsSection } from "../../shared/SettingsSection";
|
import { SettingsSection } from "../../shared/SettingsSection";
|
||||||
|
@ -232,13 +228,6 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
|
||||||
return `${appVersion}\n${olmVersion}`;
|
return `${appVersion}\n${olmVersion}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
private onKeyboardShortcutsClicked = (): void => {
|
|
||||||
dis.dispatch<OpenToTabPayload>({
|
|
||||||
action: Action.ViewUserSettings,
|
|
||||||
initialTabId: UserTab.Keyboard,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
const brand = SdkConfig.get().brand;
|
const brand = SdkConfig.get().brand;
|
||||||
|
|
||||||
|
@ -336,11 +325,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
|
||||||
<SettingsTab>
|
<SettingsTab>
|
||||||
<SettingsSection heading={_t("Help & About")}>
|
<SettingsSection heading={_t("Help & About")}>
|
||||||
{bugReportingSection}
|
{bugReportingSection}
|
||||||
<SettingsSubsection heading={_t("FAQ")} description={faqText}>
|
<SettingsSubsection heading={_t("FAQ")} description={faqText} />
|
||||||
<AccessibleButton kind="primary" onClick={this.onKeyboardShortcutsClicked}>
|
|
||||||
{_t("Keyboard Shortcuts")}
|
|
||||||
</AccessibleButton>
|
|
||||||
</SettingsSubsection>
|
|
||||||
<SettingsSubsection heading={_t("Versions")}>
|
<SettingsSubsection heading={_t("Versions")}>
|
||||||
<SettingsSubsectionText>
|
<SettingsSubsectionText>
|
||||||
<CopyableText getTextToCopy={this.getVersionTextToCopy}>
|
<CopyableText getTextToCopy={this.getVersionTextToCopy}>
|
||||||
|
|
|
@ -1579,7 +1579,6 @@
|
||||||
"To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.": "To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.",
|
"To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.": "To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.",
|
||||||
"Help & About": "Help & About",
|
"Help & About": "Help & About",
|
||||||
"FAQ": "FAQ",
|
"FAQ": "FAQ",
|
||||||
"Keyboard Shortcuts": "Keyboard Shortcuts",
|
|
||||||
"Versions": "Versions",
|
"Versions": "Versions",
|
||||||
"Homeserver is <code>%(homeserverUrl)s</code>": "Homeserver is <code>%(homeserverUrl)s</code>",
|
"Homeserver is <code>%(homeserverUrl)s</code>": "Homeserver is <code>%(homeserverUrl)s</code>",
|
||||||
"Identity server is <code>%(identityServerUrl)s</code>": "Identity server is <code>%(identityServerUrl)s</code>",
|
"Identity server is <code>%(identityServerUrl)s</code>": "Identity server is <code>%(identityServerUrl)s</code>",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue