MCPcopy Index your code
hub / github.com/refined-github/refined-github / renderShortcut

Function renderShortcut

source/helpers/tooltip.tsx:16–27  ·  view source on GitHub ↗
(shortcut: string)

Source from the content-addressed store, hash-verified

14};
15
16function renderShortcut(shortcut: string): JSX.Element {
17 const keys = shortcut.split(' ').map(key => (
18 <span className="rgh-shortcut-chord" data-kbd-chord="true">
19 {upperCaseFirst(key)}
20 </span>
21 ));
22 return (
23 <kbd className="rgh-shortcut">
24 {joinJsx(' ', keys)}
25 </kbd>
26 );
27}
28
29function createTooltipFor(element: Element, content: string | TooltipOptions): HTMLElement {
30 const options: TooltipOptions = typeof content === 'string'

Callers 1

createTooltipForFunction · 0.85

Calls 2

upperCaseFirstFunction · 0.85
joinJsxFunction · 0.85

Tested by

no test coverage detected