mirror of
https://github.com/desktop/desktop
synced 2024-10-02 22:34:41 +00:00
Merge pull request #16667 from desktop/fix-shortcut-key-warning
Fix React warning about missing `key` for `KeyboardShortcut` children
This commit is contained in:
commit
44429be2eb
|
@ -13,10 +13,10 @@ export class KeyboardShortcut extends React.Component<IKeyboardShortCutProps> {
|
|||
|
||||
return keys.map((k, i) => {
|
||||
return (
|
||||
<>
|
||||
<kbd key={k + i}>{k}</kbd>
|
||||
<React.Fragment key={k + i}>
|
||||
<kbd>{k}</kbd>
|
||||
{!__DARWIN__ && i < keys.length - 1 ? <>+</> : null}
|
||||
</>
|
||||
</React.Fragment>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue