fix(toolbox) fix warning due to missing key prop

This commit is contained in:
Saúl Ibarra Corretgé 2021-09-01 11:21:07 +02:00 committed by Saúl Ibarra Corretgé
parent 5c299bcd46
commit 18e2232e9e
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// @flow
import React, { Component } from 'react';
import React, { Component, Fragment } from 'react';
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
import {
@ -1266,13 +1266,13 @@ class Toolbox extends Component<Props, State> {
const showSeparator = index > 0 && arr[index - 1].group !== group;
return (key !== 'raisehand' || !_reactionsEnabled)
&& <>
&& <Fragment key = { `f${key}` }>
{showSeparator && <Separator key = { `hr${group}` } />}
<Content
{ ...rest }
key = { key }
showLabel = { true } />
</>
</Fragment>
;
})}
</ul>