Browse Source

fixed code formatting

all-modes^2^2
pbca26 7 years ago
parent
commit
81de7c5b31
  1. 1
      react/src/components/dashboard/bodyBottom/bodyBottom.js
  2. 11
      react/src/components/dashboard/invoiceModal/invoiceModal.js
  3. 4
      react/src/components/dashboard/invoiceModal/invoiceModal.render.js

1
react/src/components/dashboard/bodyBottom/bodyBottom.js

@ -3,7 +3,6 @@ import ReactDOM from 'react-dom';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
export default class BodyEnd extends React.PureComponent { export default class BodyEnd extends React.PureComponent {
static propTypes = { static propTypes = {
children: PropTypes.node, children: PropTypes.node,
}; };

11
react/src/components/dashboard/invoiceModal/invoiceModal.js

@ -41,9 +41,9 @@ class InvoiceModal extends React.Component {
updateQRContent() { updateQRContent() {
this.setState({ this.setState({
content: JSON.stringify({ content: JSON.stringify({
"address": this.state.qrAddress, address: this.state.qrAddress,
"amount": this.state.qrAmount, amount: this.state.qrAmount,
"coin": this.props.ActiveCoin.coin, coin: this.props.ActiveCoin.coin,
}), }),
}); });
} }
@ -115,7 +115,6 @@ class InvoiceModal extends React.Component {
} else { } else {
return InvoiceModalButtonRender.call(this); return InvoiceModalButtonRender.call(this);
} }
} }
} }
@ -134,10 +133,8 @@ const mapStateToProps = (state) => {
}, },
Dashboard: { Dashboard: {
activeHandle: state.Dashboard.activeHandle, activeHandle: state.Dashboard.activeHandle,
} },
}; };
}; };
export default connect(mapStateToProps)(InvoiceModal); export default connect(mapStateToProps)(InvoiceModal);

4
react/src/components/dashboard/invoiceModal/invoiceModal.render.js

@ -65,7 +65,7 @@ export const InvoiceModalRender = function () {
size={ 198 } /> size={ 198 } />
</div> </div>
</div> </div>
<div className="row"> <div className="row hide">
<div className="col-lg-12"> <div className="col-lg-12">
<p className="help-block"> <p className="help-block">
{ translate('INDEX.QR_CONTENT') }:<br /> { translate('INDEX.QR_CONTENT') }:<br />
@ -90,7 +90,7 @@ export const InvoiceModalButtonRender = function () {
<button type="button" <button type="button"
className="btn btn-success waves-effect waves-light margin-right-10" className="btn btn-success waves-effect waves-light margin-right-10"
onClick={ this.openModal }> onClick={ this.openModal }>
<i className="icon fa-file-text-o"></i> <i className="icon fa-file-text-o"></i>&nbsp;
{ translate('INDEX.CREATE_INVOICE') } { translate('INDEX.CREATE_INVOICE') }
</button> </button>
</span> </span>

Loading…
Cancel
Save