-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove key
prop pass-thru on HeaderButton
#5137
Remove key
prop pass-thru on HeaderButton
#5137
Conversation
This is redundant and throws a warning
key={this.props.key} | ||
onClick={ this.onClick } | ||
> | ||
return <AccessibleButton className="mx_RightPanel_headerButton" onClick={ this.onClick } > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing space before >
:(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plus I feel like you at one point told me props get no space padding within {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is true, I've added an eslint rule for this - matrix-org/matrix-react-sdk#1436
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D
key={this.props.key} | ||
onClick={ this.onClick } | ||
> | ||
return <AccessibleButton className="mx_RightPanel_headerButton" onClick={this.onClick} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/me thought should be onClick={this.onClick}>
similar to the <div
below not padding out its closing >
This is redundant and throws a warning