@ -1,5 +1,6 @@
/ *
Copyright 2017 New Vector Ltd .
Copyright 2019 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 .
@ -18,7 +19,7 @@ import React from 'react';
import sdk from '../../../index' ;
module . exports = React . createClass ( {
displayName : 'ToolT ipButton' ,
displayName : 'Toolt ipButton' ,
getInitialState : function ( ) {
return {
@ -41,12 +42,12 @@ module.exports = React.createClass({
render : function ( ) {
const Tooltip = sdk . getComponent ( "elements.Tooltip" ) ;
const tip = this . state . hover ? < Tooltip
className = "mx_ToolT ipButton_container"
tooltipClassName = "mx_ToolT ipButton_helpText"
className = "mx_Toolt ipButton_container"
tooltipClassName = "mx_Toolt ipButton_helpText"
label = { this . props . helpText }
/> : <div / > ;
return (
< div className = "mx_ToolT ipButton" onMouseOver = { this . onMouseOver } onMouseOut = { this . onMouseOut } >
< div className = "mx_Toolt ipButton" onMouseOver = { this . onMouseOver } onMouseOut = { this . onMouseOut } >
?
{ tip }
< / d i v >