diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-06-17 08:27:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 08:27:50 +0800 |
commit | bdb113fabe9091b195d70f7f61246b6647b3b0a4 (patch) | |
tree | f5fdbfc8f997c1aeafee3074a2f143ed63c2d7e0 /ui/app/first-time/disclaimer.js | |
parent | 6f19e9d5a9d246b8b7253865388042d45875c505 (diff) | |
parent | 65f9f997b002cd2a8a3eb0ba9dc12d7635cd4ec3 (diff) | |
download | tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar.gz tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar.bz2 tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar.lz tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar.xz tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.tar.zst tangerine-wallet-browser-bdb113fabe9091b195d70f7f61246b6647b3b0a4.zip |
Merge pull request #295 from MetaMask/AddDisclaimer
Create disclaimer view
Diffstat (limited to 'ui/app/first-time/disclaimer.js')
-rw-r--r-- | ui/app/first-time/disclaimer.js | 56 |
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') + ]) + ) +} + |