Name things in a sane way
parent
62305a1ccd
commit
ddc1ff2f23
|
@ -661,9 +661,9 @@ export default React.createClass({
|
||||||
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
||||||
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
||||||
const Spinner = sdk.getComponent('elements.Spinner');
|
const Spinner = sdk.getComponent('elements.Spinner');
|
||||||
const ToolTip = sdk.getComponent('elements.ToolTip');
|
const ToolTipButton = sdk.getComponent('elements.ToolTipButton');
|
||||||
|
|
||||||
const roomsHelpNode = this.state.editing ? <ToolTip helpText={
|
const roomsHelpNode = this.state.editing ? <ToolTipButton helpText={
|
||||||
_t(
|
_t(
|
||||||
'These rooms are displayed to community members on the community page. '+
|
'These rooms are displayed to community members on the community page. '+
|
||||||
'Community members can join the rooms by clicking on them.',
|
'Community members can join the rooms by clicking on them.',
|
||||||
|
|
|
@ -18,38 +18,38 @@ import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'ToolTip',
|
displayName: 'ToolTipButton',
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
hover: false,
|
hover: false,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseOver: function() {
|
onMouseOver: function() {
|
||||||
this.setState({
|
this.setState({
|
||||||
hover: true,
|
hover: true,
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseOut: function() {
|
onMouseOut: function() {
|
||||||
this.setState({
|
this.setState({
|
||||||
hover: false,
|
hover: false,
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
const RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
||||||
const tip = this.state.hover ? <RoomTooltip
|
const tip = this.state.hover ? <RoomTooltip
|
||||||
className="mx_ToolTip_container"
|
className="mx_ToolTipButton_container"
|
||||||
tooltipClassName="mx_ToolTip_helpText"
|
tooltipClassName="mx_ToolTipButton_helpText"
|
||||||
label={this.props.helpText}
|
label={this.props.helpText}
|
||||||
/> : <div />;
|
/> : <div />;
|
||||||
return (
|
return (
|
||||||
<div className="mx_ToolTip"onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut} >
|
<div className="mx_ToolTipButton"onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut} >
|
||||||
?
|
?
|
||||||
{ tip }
|
{ tip }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
},
|
||||||
});
|
});
|
Loading…
Reference in New Issue