Remove `key` prop pass-thru on HeaderButton

This is redundant and throws a warning
This commit is contained in:
Luke Barnard 2017-09-28 09:46:10 +01:00
parent 1740319b7a
commit ce13837216
1 changed files with 1 additions and 5 deletions

View File

@ -45,11 +45,7 @@ class HeaderButton extends React.Component {
const TintableSvg = sdk.getComponent("elements.TintableSvg"); const TintableSvg = sdk.getComponent("elements.TintableSvg");
const AccessibleButton = sdk.getComponent("elements.AccessibleButton"); const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
return <AccessibleButton return <AccessibleButton className="mx_RightPanel_headerButton" onClick={ this.onClick } >
className="mx_RightPanel_headerButton"
key={this.props.key}
onClick={ this.onClick }
>
<div className="mx_RightPanel_headerButton_badge"> <div className="mx_RightPanel_headerButton_badge">
{ this.props.badge ? this.props.badge : <span>&nbsp;</span>} { this.props.badge ? this.props.badge : <span>&nbsp;</span>}
</div> </div>