Add access specifier to class methods

This commit is contained in:
Swapnil Raj 2020-07-30 15:58:07 +05:30
parent fbc341a2f5
commit d0e2695114
5 changed files with 26 additions and 26 deletions

View file

@ -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,