diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-09 07:13:19 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-09 07:20:31 +0800 |
commit | 47b32682f33b3f1a3757ea10c2d7e4a04fa584b1 (patch) | |
tree | 19792176eaea20f00244f80c4698946e1249f076 /ui | |
parent | db241e6b914d301086f54bb62fb307519a8386ec (diff) | |
download | tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.gz tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.zst tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.zip |
Don't render tooltips without titles
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/tooltip-v2.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/components/tooltip-v2.js b/ui/app/components/tooltip-v2.js index 0ac5444d6..054782203 100644 --- a/ui/app/components/tooltip-v2.js +++ b/ui/app/components/tooltip-v2.js @@ -38,6 +38,14 @@ export default class Tooltip extends PureComponent { render () { const {arrow, children, containerClassName, position, size, title, trigger, onHidden, wrapperClassName } = this.props + if (!title) { + return ( + <div className={wrapperClassName}> + {children} + </div> + ) + } + return ( <div className={wrapperClassName}> <ReactTippy |