Appease the types

pull/21833/head
Jorik Schellekens 2020-05-25 17:53:09 +01:00
parent 303691eb72
commit fc1f14f5aa
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 New Vector Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2019 The Matrix.org Foundation C.I.C.
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -31,11 +31,11 @@ interface IProps {
// Class applied to the element used to position the tooltip
className: string,
// Class applied to the tooltip itself
tooltipClassName: string,
tooltipClassName?: string,
// Whether the tooltip is visible or hidden.
// The hidden state allows animating the tooltip away via CSS.
// Defaults to visible if unset.
visible: boolean,
visible?: boolean,
// the react element to put into the tooltip
label: React.ReactNode,
}

View File

@ -214,7 +214,7 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
let tooltip = null;
if (false) { // isCollapsed
if (this.state.hover) {
tooltip = <Tooltip className="mx_RoomTile_tooltip" label={this.props.room.name} dir="auto"/>
tooltip = <Tooltip className="mx_RoomTile_tooltip" label={this.props.room.name} />
}
}