Fixes in Shortcuts dialog and minor refactor (#1297)

This commit is contained in:
Lipis 2020-04-07 14:39:06 +03:00 committed by GitHub
parent e4c154f43e
commit 0c3d34261e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 96 additions and 82 deletions

View file

@ -1,5 +1,4 @@
import React from "react";
import { getShortcutKey } from "../utils";
type HelpIconProps = {
title?: string;
@ -21,10 +20,7 @@ const ICON = (
export function HelpIcon(props: HelpIconProps) {
return (
<label
title={`${props.title} ${getShortcutKey("?")}`}
className="help-icon"
>
<label title={`${props.title} — ?`} className="help-icon">
<div onClick={props.onClick}>{ICON}</div>
</label>
);