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
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>
))}