mirror of https://github.com/vector-im/riot-web
Merge pull request #5137 from vector-im/luke/fix-header-button-key-prop-warning
Remove `key` prop pass-thru on HeaderButtonpull/5140/head
commit
bb64e9a18b
|
@ -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> </span> }
|
{ this.props.badge ? this.props.badge : <span> </span> }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue