aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-09-09 07:13:19 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-09-09 07:20:31 +0800
commit47b32682f33b3f1a3757ea10c2d7e4a04fa584b1 (patch)
tree19792176eaea20f00244f80c4698946e1249f076 /ui
parentdb241e6b914d301086f54bb62fb307519a8386ec (diff)
downloadtangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar
tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.gz
tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.bz2
tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.lz
tangerine-wallet-browser-47b32682f33b3f1a3757ea10c2d7e4a04fa584b1.tar.xz
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.js8
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