aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/qr-code.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-08-19 22:57:51 +0800
committerGitHub <noreply@github.com>2016-08-19 22:57:51 +0800
commit30af7e96cba7a88d46d3376097e4d44b715f834c (patch)
treec2bb2a52f309be3b781ac0ba6ef8df0b287d991c /ui/app/components/qr-code.js
parent9c29328085fbad82ce7bce4659ce6968405a7b3c (diff)
parent9cd85aea2f858cb79f82cde57e53096756092503 (diff)
downloadtangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar.gz
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar.bz2
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar.lz
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar.xz
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.tar.zst
tangerine-wallet-browser-30af7e96cba7a88d46d3376097e4d44b715f834c.zip
Merge pull request #559 from MetaMask/shapeshiftTx
Shapeshift tx
Diffstat (limited to 'ui/app/components/qr-code.js')
-rw-r--r--ui/app/components/qr-code.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/components/qr-code.js b/ui/app/components/qr-code.js
index f8cace4e0..c26b02b94 100644
--- a/ui/app/components/qr-code.js
+++ b/ui/app/components/qr-code.js
@@ -10,6 +10,7 @@ function mapStateToProps (state) {
return {
Qr: state.appState.Qr,
buyView: state.appState.buyView,
+ warning: state.appState.warning,
}
}
@@ -23,6 +24,7 @@ QrCodeView.prototype.render = function () {
var props = this.props
var Qr = props.Qr
return h('.main-container.flex-column', {
+ key: 'qr',
style: {
justifyContent: 'center',
padding: '45px',
@@ -30,8 +32,17 @@ QrCodeView.prototype.render = function () {
},
}, [
Array.isArray(Qr.message) ? h('.message-container', this.renderMultiMessage()) : h('h3', Qr.message),
+
+ this.props.warning ? this.props.warning && h('span.error.flex-center', {
+ style: {
+ textAlign: 'center',
+ width: '229px',
+ height: '82px',
+ },
+ },
+ this.props.warning) : null,
+
h('#qr-container.flex-column', {
- key: 'qr',
style: {
marginTop: '25px',
marginBottom: '15px',