refactor: Converting span to kbd tag (#2774)

This commit is contained in:
Rafi 2021-01-14 12:54:32 +05:30 committed by GitHub
parent 04c46fc01a
commit 511eb62228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -52,11 +52,11 @@ const ContextMenu = ({ options, onCloseRequest, top, left }: Props) => {
onClick={action}
>
<div className="context-menu-option__label">{label}</div>
<div className="context-menu-option__shortcut">
<kbd className="context-menu-option__shortcut">
{shortcutName
? getShortcutFromShortcutName(shortcutName)
: ""}
</div>
</kbd>
</button>
</li>
))}