aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/tooltip.js')
-rw-r--r--ui/app/components/tooltip.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/components/tooltip.js b/ui/app/components/tooltip.js
index fb67c717e..757ad0cd6 100644
--- a/ui/app/components/tooltip.js
+++ b/ui/app/components/tooltip.js
@@ -11,12 +11,14 @@ function Tooltip () {
}
Tooltip.prototype.render = function () {
+
const props = this.props
+ const { position, title, children } = props
return h(ReactTooltip, {
- position: props.position ? props.position : 'left',
- title: props.title,
+ position: position || 'left',
+ title,
fixed: false,
- }, props.children)
+ }, children)
}