aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/alert
diff options
context:
space:
mode:
authorCsaba S <csaba.solya@gmail.com>2018-07-21 02:09:57 +0800
committerGitHub <noreply@github.com>2018-07-21 02:09:57 +0800
commitc11dea9afc9f4215529abda11a0d5a7e4fdd10d4 (patch)
tree9a21c102490c3a9c751c606008d1e0c10b20cdc2 /ui/app/components/alert
parent682d59cfe0114dc987fe5e953e9db4dca5e2b5d7 (diff)
parentcb045fd8feec88bd631329ab9b3285aeed0f2e97 (diff)
downloadtangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.tar.gz
tangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.tar.zst
tangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.zip
Merge branch 'develop' into transaction-notifications
Diffstat (limited to 'ui/app/components/alert')
-rw-r--r--ui/app/components/alert/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/app/components/alert/index.js b/ui/app/components/alert/index.js
new file mode 100644
index 000000000..fc39d41e2
--- /dev/null
+++ b/ui/app/components/alert/index.js
@@ -0,0 +1,22 @@
+const { Component } = require('react')
+const PropTypes = require('prop-types')
+const h = require('react-hyperscript')
+
+class Alert extends Component {
+
+ render () {
+ const className = `.global-alert${this.props.visible ? '.visible' : '.hidden'}`
+ return (
+ h(`div${className}`, {},
+ h('a.msg', {}, this.props.msg)
+ )
+ )
+ }
+}
+
+Alert.propTypes = {
+ visible: PropTypes.bool.isRequired,
+ msg: PropTypes.string,
+}
+module.exports = Alert
+