Skip to content

Commit ce13837

Browse files
author
Luke Barnard
committed
Remove key prop pass-thru on HeaderButton
This is redundant and throws a warning
1 parent 1740319 commit ce13837

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ 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">
5450
{ this.props.badge ? this.props.badge : <span>&nbsp;</span>}
5551
</div>

0 commit comments

Comments
 (0)