toolbox: fix missing key prop

Fixes a React warning.
This commit is contained in:
Saúl Ibarra Corretgé 2020-07-03 10:29:00 +02:00 committed by Saúl Ibarra Corretgé
parent da9a70129e
commit a7e0df2623

View File

@ -1083,7 +1083,11 @@ class Toolbox extends Component<Props, State> {
} /> } />
); );
case 'closedcaptions': case 'closedcaptions':
return <ClosedCaptionButton showLabel = { true } />; return (
<ClosedCaptionButton
key = 'closed-captions'
showLabel = { true } />
);
case 'security': case 'security':
return ( return (
<SecurityDialogButton <SecurityDialogButton