aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tooltip.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-06-30 08:06:31 +0800
committerGitHub <noreply@github.com>2016-06-30 08:06:31 +0800
commitf7bb3cdcfebacc3f3970b469503db202e0bdda28 (patch)
tree29833bc540d8f30378e82deaae842a21aecb2ab6 /ui/app/components/tooltip.js
parent3ae479f5ac3a569eb3840f119148bc4db626a295 (diff)
parent2880f8631c4de09860b2be01c90b4b30d08c8415 (diff)
downloadtangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.gz
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.bz2
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.lz
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.xz
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.zst
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.zip
Merge pull request #368 from MetaMask/CopyTxHash
Copy tx hash
Diffstat (limited to 'ui/app/components/tooltip.js')
-rw-r--r--ui/app/components/tooltip.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/app/components/tooltip.js b/ui/app/components/tooltip.js
new file mode 100644
index 000000000..4eab8611e
--- /dev/null
+++ b/ui/app/components/tooltip.js
@@ -0,0 +1,22 @@
+const Component = require('react').Component
+const h = require('react-hyperscript')
+const inherits = require('util').inherits
+const ReactTooltip = require('react-tooltip-component')
+
+module.exports = Tooltip
+
+inherits(Tooltip, Component)
+function Tooltip () {
+ Component.call(this)
+}
+
+Tooltip.prototype.render = function () {
+ const props = this.props
+
+ return h(ReactTooltip, {
+ position: 'left',
+ title: props.title,
+ fixed: false,
+ }, props.children)
+
+}