Move KeyboardShortcut styling into a separate file (#8067)

This commit is contained in:
Šimon Brandner
2022-03-21 12:41:32 +01:00
committed by GitHub
parent 22712d3091
commit 8418b4fd71
6 changed files with 53 additions and 24 deletions

View File

@@ -58,7 +58,7 @@ export const KeyboardShortcut: React.FC<IKeyboardShortcutProps> = ({ value }) =>
modifiersElement.push(<KeyboardKey key="shiftKey" name={Key.SHIFT} />);
}
return <div>
return <div className="mx_KeyboardShortcut">
{ modifiersElement }
<KeyboardKey name={value.key} last />
</div>;