You've already forked matrix-react-sdk
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:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user