mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 07:20:21 +02:00
Fixes in Shortcuts dialog and minor refactor (#1297)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user