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';
export default class BodyEnd extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
};

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

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

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

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

Loading…
Cancel
Save