aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/first-time/disclaimer.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-17 08:34:44 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-17 08:34:44 +0800
commit451be3b10e4550d80cf11c73f38e879d13a15e3d (patch)
treefb1c1fb3099bd650a4a5501f9b3ced44e045596b /ui/app/first-time/disclaimer.js
parentfe83a19c0847b8d4ca051bbd4d37e13d9d7bdd39 (diff)
parentbdb113fabe9091b195d70f7f61246b6647b3b0a4 (diff)
downloadtangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar.gz
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar.bz2
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar.lz
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar.xz
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.tar.zst
tangerine-wallet-browser-451be3b10e4550d80cf11c73f38e879d13a15e3d.zip
Merge branch 'master' into SignFullDataNotHash
Diffstat (limited to 'ui/app/first-time/disclaimer.js')
-rw-r--r--ui/app/first-time/disclaimer.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/ui/app/first-time/disclaimer.js b/ui/app/first-time/disclaimer.js
new file mode 100644
index 000000000..fe138c93b
--- /dev/null
+++ b/ui/app/first-time/disclaimer.js
@@ -0,0 +1,56 @@
+const inherits = require('util').inherits
+const Component = require('react').Component
+const h = require('react-hyperscript')
+const connect = require('react-redux').connect
+const actions = require('../actions')
+const fs = require('fs')
+const path = require('path')
+const disclaimer = fs.readFileSync(path.join(__dirname, 'disclaimer.txt')).toString()
+module.exports = connect(mapStateToProps)(DisclaimerScreen)
+
+function mapStateToProps(state) {
+ return {}
+}
+
+inherits(DisclaimerScreen, Component)
+function DisclaimerScreen() {
+ Component.call(this)
+}
+
+DisclaimerScreen.prototype.render = function() {
+
+ return (
+ h('.flex-column.flex-center.flex-grow', [
+
+ h('h3.flex-center.text-transform-uppercase', {
+ style: {
+ background: '#EBEBEB',
+ color: '#AEAEAE',
+ marginBottom: 24,
+ width: '100%',
+ fontSize: '20px',
+ padding: 6,
+ },
+ }, [
+ 'MetaMask Terms & Conditions',
+ ]),
+
+ h('div', {
+ style: {
+ whiteSpace: 'pre-line',
+ background: 'rgb(235, 235, 235)',
+ height: '336px',
+ padding: '6px',
+ width: '80%',
+ overflowY: 'scroll',
+ }
+ }, disclaimer),
+
+ h('button', {
+ style: { marginTop: '18px' },
+ onClick: () => this.props.dispatch(actions.agreeToDisclaimer())
+ }, 'I Agree')
+ ])
+ )
+}
+