mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Add key prop to shortcut listgroup
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
52fb372b9b
commit
34ceef9d98
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export const Shortcut: React.FC = () => {
|
||||||
<ListGroup variant="flush">
|
<ListGroup variant="flush">
|
||||||
{Object.entries(shortcutMap[category]).map(([functionName, shortcut]) => {
|
{Object.entries(shortcutMap[category]).map(([functionName, shortcut]) => {
|
||||||
return (
|
return (
|
||||||
<ListGroup.Item className={'d-flex justify-content-between'}>
|
<ListGroup.Item key={functionName} className={'d-flex justify-content-between'}>
|
||||||
<span><Trans i18nKey={functionName}/></span>
|
<span><Trans i18nKey={functionName}/></span>
|
||||||
<span>{shortcut}</span>
|
<span>{shortcut}</span>
|
||||||
</ListGroup.Item>
|
</ListGroup.Item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue