Show hint when hovering over function icon

This commit is contained in:
Lukas Martinelli
2017-01-09 22:54:30 +01:00
parent d3276829b2
commit cff0a15f7e
2 changed files with 9 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ export default class DocLabel extends React.Component {
label: React.PropTypes.string.isRequired,
doc: React.PropTypes.string.isRequired,
style: React.PropTypes.object,
cursorTargetStyle: React.PropTypes.object,
}
constructor(props) {
@@ -29,6 +30,7 @@ export default class DocLabel extends React.Component {
onMouseOut={e => this.setState({showDoc: false})}
style={{
cursor: 'help',
...this.props.cursorTargetStyle,
}}
>
{this.props.label}