|
@ -7,35 +7,29 @@ export const QRModalRender = function () { |
|
|
<span> |
|
|
<span> |
|
|
<span className="label label-default margin-left-10 action" |
|
|
<span className="label label-default margin-left-10 action" |
|
|
title={ translate('INDEX.QRCODE') } |
|
|
title={ translate('INDEX.QRCODE') } |
|
|
onClick={this.openModal}> |
|
|
onClick={ this.openModal }> |
|
|
<i className="icon fa-qrcode" aria-hidden="true"></i> |
|
|
<i className="icon fa-qrcode"></i> |
|
|
</span> |
|
|
</span> |
|
|
<div |
|
|
<div |
|
|
className={ 'modal modal-3d-sign ' + (this.state.modalIsOpen ? 'show in' : 'fade hide') } |
|
|
className={ 'modal modal-3d-sign ' + (this.state.modalIsOpen ? 'show in' : 'fade hide') } |
|
|
id="QRModal" |
|
|
id="QRModal"> |
|
|
aria-hidden="true" |
|
|
|
|
|
aria-labelledby="QRModal" |
|
|
|
|
|
role="dialog" |
|
|
|
|
|
tabIndex="-1"> |
|
|
|
|
|
<div className="modal-dialog modal-center modal-sm"> |
|
|
<div className="modal-dialog modal-center modal-sm"> |
|
|
<div className="modal-content"> |
|
|
<div className="modal-content"> |
|
|
<div className="modal-header bg-orange-a400 wallet-send-header"> |
|
|
<div className="modal-header bg-orange-a400 wallet-send-header"> |
|
|
<button |
|
|
<button |
|
|
type="button" |
|
|
type="button" |
|
|
className="close white" |
|
|
className="close white" |
|
|
aria-label="Close" |
|
|
|
|
|
onClick={ this.closeModal }> |
|
|
onClick={ this.closeModal }> |
|
|
<span aria-hidden="true">×</span> |
|
|
<span>×</span> |
|
|
</button> |
|
|
</button> |
|
|
<h4 className="modal-title white text-left">{ translate('INDEX.SCAN_QR_CODE') }</h4> |
|
|
<h4 className="modal-title white text-left">{ translate('INDEX.SCAN_QR_CODE') }</h4> |
|
|
</div> |
|
|
</div> |
|
|
<div className="modal-body"> |
|
|
<div className="modal-body"> |
|
|
<div className="animsition vertical-align fade-in"> |
|
|
<div className="animsition vertical-align fade-in"> |
|
|
<div className="page-content vertical-align-middle"> |
|
|
<div className="page-content vertical-align-middle"> |
|
|
<QRCode |
|
|
<QRCode |
|
|
value={this.props.content} |
|
|
value={ this.props.content } |
|
|
size={198} |
|
|
size={ 198 } /> |
|
|
/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -52,25 +46,21 @@ export const QRModalReaderRender = function () { |
|
|
<span> |
|
|
<span> |
|
|
<button type="button" |
|
|
<button type="button" |
|
|
className="btn btn-default" |
|
|
className="btn btn-default" |
|
|
onClick={this.openModal}> |
|
|
onClick={ this.openModal }> |
|
|
<i className="icon fa-qrcode" aria-hidden="true"></i> |
|
|
<i className="icon fa-qrcode"></i> |
|
|
{ translate('INDEX.SCAN_QRCODE_WEBCAM') } |
|
|
{ translate('INDEX.SCAN_QRCODE_WEBCAM') } |
|
|
</button> |
|
|
</button> |
|
|
<div className={ 'modal modal-3d-sign ' + (this.state.modalIsOpen ? 'show in' : 'fade hide') } |
|
|
<div |
|
|
id="QRReadModal" |
|
|
className={ 'modal modal-3d-sign ' + (this.state.modalIsOpen ? 'show in' : 'fade hide') } |
|
|
aria-hidden="true" |
|
|
id="QRReadModal"> |
|
|
aria-labelledby="QRReadModal" |
|
|
|
|
|
role="dialog" |
|
|
|
|
|
tabIndex="-1"> |
|
|
|
|
|
<div className="modal-dialog modal-center modal-md"> |
|
|
<div className="modal-dialog modal-center modal-md"> |
|
|
<div className="modal-content"> |
|
|
<div className="modal-content"> |
|
|
<div className="modal-header bg-orange-a400 wallet-send-header"> |
|
|
<div className="modal-header bg-orange-a400 wallet-send-header"> |
|
|
<button |
|
|
<button |
|
|
type="button" |
|
|
type="button" |
|
|
className="close white" |
|
|
className="close white" |
|
|
aria-label="Close" |
|
|
|
|
|
onClick={ this.closeModal }> |
|
|
onClick={ this.closeModal }> |
|
|
<span aria-hidden="true">×</span> |
|
|
<span>×</span> |
|
|
</button> |
|
|
</button> |
|
|
<h4 className="modal-title white text-left">{ translate('INDEX.SCAN_QRCODE_WEBCAM') }</h4> |
|
|
<h4 className="modal-title white text-left">{ translate('INDEX.SCAN_QRCODE_WEBCAM') }</h4> |
|
|
</div> |
|
|
</div> |
|
@ -78,7 +68,7 @@ export const QRModalReaderRender = function () { |
|
|
<div className="animsition vertical-align fade-in"> |
|
|
<div className="animsition vertical-align fade-in"> |
|
|
<div className="page-content vertical-align-middle"> |
|
|
<div className="page-content vertical-align-middle"> |
|
|
<div id="webcam"> |
|
|
<div id="webcam"> |
|
|
{this.state.error} |
|
|
{ this.state.error } |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|