1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Adhere to TypeScript codestyle better

This commit is contained in:
Germain Souquet
2021-05-24 16:40:55 +01:00
parent f478cd98f7
commit fdc22bfdf7

View File

@@ -29,17 +29,20 @@ interface IState {
@replaceableComponent("views.elements.TooltipButton") @replaceableComponent("views.elements.TooltipButton")
export default class TooltipButton extends React.Component<IProps, IState> { export default class TooltipButton extends React.Component<IProps, IState> {
state = { constructor(props) {
super(props);
this.state = {
hover: false, hover: false,
}; };
}
onMouseOver = () => { private onMouseOver = () => {
this.setState({ this.setState({
hover: true, hover: true,
}); });
}; };
onMouseLeave = () => { private onMouseLeave = () => {
this.setState({ this.setState({
hover: false, hover: false,
}); });