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.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/tooltip.js b/ui/app/components/tooltip.js
index fb67c717e..440393b08 100644
--- a/ui/app/components/tooltip.js
+++ b/ui/app/components/tooltip.js
@@ -12,11 +12,12 @@ 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)
}