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
1 changed files with 5 additions and 1 deletions

View File

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