aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/notice.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-03-29 09:02:39 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-03-29 09:02:39 +0800
commita20a237282c38da86b03625d08b48c2e58e83523 (patch)
tree65c58173cf8e0da53dbb6b9f18014ed8c1babf9c /ui/app/components/notice.js
parent79248ae5cd3fb1314c5a7ff71c05f9dbe7b3a4cd (diff)
parent7c09bde4120d1063df762076d41d2e9921dd3c0e (diff)
downloadtangerine-wallet-browser-a20a237282c38da86b03625d08b48c2e58e83523.tar.gz
tangerine-wallet-browser-a20a237282c38da86b03625d08b48c2e58e83523.tar.zst
tangerine-wallet-browser-a20a237282c38da86b03625d08b48c2e58e83523.zip
Merge branch 'master' into mascara
Diffstat (limited to 'ui/app/components/notice.js')
-rw-r--r--ui/app/components/notice.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/app/components/notice.js b/ui/app/components/notice.js
index 23ded9d5d..b85787033 100644
--- a/ui/app/components/notice.js
+++ b/ui/app/components/notice.js
@@ -92,6 +92,7 @@ Notice.prototype.render = function () {
},
}, [
h(ReactMarkdown, {
+ className: 'notice-box',
source: body,
skipHtml: true,
}),
@@ -99,7 +100,10 @@ Notice.prototype.render = function () {
h('button', {
disabled,
- onClick: onConfirm,
+ onClick: () => {
+ this.setState({disclaimerDisabled: true})
+ onConfirm()
+ },
style: {
marginTop: '18px',
},
@@ -111,6 +115,8 @@ Notice.prototype.render = function () {
Notice.prototype.componentDidMount = function () {
var node = findDOMNode(this)
linker.setupListener(node)
+ if (document.getElementsByClassName('notice-box')[0].clientHeight < 310) { this.setState({disclaimerDisabled: false}) }
+
}
Notice.prototype.componentWillUnmount = function () {