aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/first-time
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-10-13 01:58:58 +0800
committerDan Finlay <dan@danfinlay.com>2016-10-13 01:58:58 +0800
commit535d832a64daa4d87367cd29042554f77f4e3dc2 (patch)
tree890f2c40448d16bc07a0776349321378532e0512 /ui/app/first-time
parentea1a934c7defe7e1b077b675ae9125118f1f3d87 (diff)
parentd67a5031c7f2b4cd14d3d27f3769a31769012f54 (diff)
downloadtangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar.gz
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar.bz2
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar.lz
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar.xz
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.tar.zst
tangerine-wallet-browser-535d832a64daa4d87367cd29042554f77f4e3dc2.zip
Merge branch 'master' into i328-MultiVault
Diffstat (limited to 'ui/app/first-time')
-rw-r--r--ui/app/first-time/disclaimer.js31
1 files changed, 27 insertions, 4 deletions
diff --git a/ui/app/first-time/disclaimer.js b/ui/app/first-time/disclaimer.js
index c6174a220..819d4a110 100644
--- a/ui/app/first-time/disclaimer.js
+++ b/ui/app/first-time/disclaimer.js
@@ -19,6 +19,9 @@ function DisclaimerScreen () {
}
DisclaimerScreen.prototype.render = function () {
+ const state = this.state || {disclaimerDisabled: true}
+ const disabled = state.disclaimerDisabled
+
return (
h('.flex-column.flex-center.flex-grow', [
@@ -40,18 +43,38 @@ DisclaimerScreen.prototype.render = function () {
.markdown {
font-family: Times New Roman;
+ overflow-x: hidden;
}
.markdown h1, .markdown h2, .markdown h3 {
margin: 10px 0;
- font-family: arial sans-serif;
font-weight: bold;
}
+ .markdown strong {
+ font-weight: bold;
+ }
+ .markdown em {
+ font-style: italic;
+ }
+
+ .markdown p {
+ margin: 10px 0;
+ }
+
+ .markdown a {
+ color: blue;
+ }
+
`),
h('div.markdown', {
+ onScroll: (e) => {
+ var object = e.currentTarget
+ if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
+ this.setState({disclaimerDisabled: false})
+ }
+ },
style: {
- // whiteSpace: 'pre-line',
background: 'rgb(235, 235, 235)',
height: '310px',
padding: '6px',
@@ -69,9 +92,9 @@ DisclaimerScreen.prototype.render = function () {
h('button', {
style: { marginTop: '18px' },
+ disabled,
onClick: () => this.props.dispatch(actions.agreeToDisclaimer()),
- }, 'I Agree'),
+ }, disabled ? 'Scroll Down to Enable' : 'I Agree'),
])
)
}
-