Add access specifier to class methods
This commit is contained in:
parent
fbc341a2f5
commit
d0e2695114
5 changed files with 26 additions and 26 deletions
|
@ -45,12 +45,12 @@ export default class HeaderButton extends React.Component<IProps> {
|
|||
this.onClick = this.onClick.bind(this);
|
||||
}
|
||||
|
||||
onClick(_ev: React.KeyboardEvent) {
|
||||
private onClick() {
|
||||
Analytics.trackEvent(...this.props.analytics);
|
||||
this.props.onClick();
|
||||
}
|
||||
|
||||
render() {
|
||||
public render() {
|
||||
const classes = classNames({
|
||||
mx_RightPanel_headerButton: true,
|
||||
mx_RightPanel_headerButton_highlight: this.props.isHighlighted,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue