Skip to content

Commit bb64e9a

Browse files
authored
Merge pull request element-hq#5137 from vector-im/luke/fix-header-button-key-prop-warning
Remove `key` prop pass-thru on HeaderButton
2 parents 1740319 + f9a92ad commit bb64e9a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ class HeaderButton extends React.Component {
4545
const TintableSvg = sdk.getComponent("elements.TintableSvg");
4646
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
4747

48-
return <AccessibleButton
49-
className="mx_RightPanel_headerButton"
50-
key={this.props.key}
51-
onClick={ this.onClick }
52-
>
48+
return <AccessibleButton className="mx_RightPanel_headerButton" onClick={this.onClick} >
5349
<div className="mx_RightPanel_headerButton_badge">
54-
{ this.props.badge ? this.props.badge : <span>&nbsp;</span>}
50+
{ this.props.badge ? this.props.badge : <span>&nbsp;</span> }
5551
</div>
5652
<TintableSvg src={this.props.iconSrc} width="25" height="25"/>
5753
{ this.props.isHighlighted ? <div className="mx_RightPanel_headerButton_highlight"></div> : <div/> }

0 commit comments

Comments
 (0)