aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/notice.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-21 07:54:59 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-21 08:07:24 +0800
commit11c1004a41a9287c13ef15f28805863aab9fdea9 (patch)
treecfb61bd5e041eec0dfaf19f8f5e85ecc16476299 /ui/app/notice.js
parent553f1769a099ac037cdda489295a96f7dd2c100f (diff)
downloadtangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar.gz
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar.bz2
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar.lz
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar.xz
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.tar.zst
tangerine-wallet-browser-11c1004a41a9287c13ef15f28805863aab9fdea9.zip
Linted
Diffstat (limited to 'ui/app/notice.js')
-rw-r--r--ui/app/notice.js112
1 files changed, 0 insertions, 112 deletions
diff --git a/ui/app/notice.js b/ui/app/notice.js
deleted file mode 100644
index 92c171c4d..000000000
--- a/ui/app/notice.js
+++ /dev/null
@@ -1,112 +0,0 @@
-const inherits = require('util').inherits
-const Component = require('react').Component
-const h = require('react-hyperscript')
-const ReactMarkdown = require('react-markdown')
-const connect = require('react-redux').connect
-const actions = require('./actions')
-const linker = require('extension-link-enabler')
-const findDOMNode = require('react-dom').findDOMNode
-
-module.exports = Notice
-
-inherits(Notice, Component)
-function Notice () {
- Component.call(this)
-}
-
-Notice.prototype.render = function () {
- const { notice, onConfirm } = this.props
- const { title, date, body } = notice
-
- return (
- h('.flex-column.flex-center.flex-grow', [
- h('h3.flex-center.text-transform-uppercacse.terms-header', {
- style: {
- background: '#EBEBEB',
- color: '#AEAEAE',
- width: '100%',
- fontSize: '20px',
- textAlign: 'center',
- padding: 6,
- },
- }, [
- title,
- ]),
-
- h('h5.flex-center.text-transform-uppercacse.terms-header', {
- style: {
- background: '#EBEBEB',
- color: '#AEAEAE',
- marginBottom: 24,
- width: '100%',
- fontSize: '20px',
- textAlign: 'center',
- padding: 6,
- },
- }, [
- date,
- ]),
-
- h('style', `
-
- .markdown {
- overflow-x: hidden;
- }
-
- .markdown h1, .markdown h2, .markdown h3 {
- margin: 10px 0;
- font-weight: bold;
- }
-
- .markdown strong {
- font-weight: bold;
- }
- .markdown em {
- font-style: italic;
- }
-
- .markdown p {
- margin: 10px 0;
- }
-
- .markdown a {
- color: #df6b0e;
- }
-
- `),
-
- h('div.markdown', {
- style: {
- background: 'rgb(235, 235, 235)',
- height: '310px',
- padding: '6px',
- width: '90%',
- overflowY: 'scroll',
- scroll: 'auto',
- },
- }, [
- h(ReactMarkdown, {
- source: body,
- skipHtml: true,
- }),
- ]),
-
- h('button', {
- onClick: onConfirm,
- style: {
- marginTop: '18px',
- },
- }, 'Continue'),
- ])
- )
-}
-
-Notice.prototype.componentDidMount = function () {
- var node = findDOMNode(this)
- linker.setupListener(node)
-}
-
-Notice.prototype.componentWillUnmount = function () {
- var node = findDOMNode(this)
- linker.teardownListener(node)
-}