diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-08-19 01:40:35 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-08-19 02:04:28 +0800 |
commit | 752d16f6c072b0dd54eb245209881a25ff06cb8e (patch) | |
tree | 942ce682425b2811c5143028d842e02095712c46 /ui/app/components/qr-code.js | |
parent | 9b1a3fd7f36adfacd46de78f4f60e26eca6edd16 (diff) | |
download | tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar.gz tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar.bz2 tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar.lz tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar.xz tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.tar.zst tangerine-wallet-browser-752d16f6c072b0dd54eb245209881a25ff06cb8e.zip |
WIP: ShapeShift tx
Diffstat (limited to 'ui/app/components/qr-code.js')
-rw-r--r-- | ui/app/components/qr-code.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/components/qr-code.js b/ui/app/components/qr-code.js index 1c744b234..b71eaa483 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', |