Browse Source

fix(sync): fix lint errors

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
a439df1f12
  1. 7
      app/components/LndSyncing/LndSyncing.js
  2. 7
      app/containers/Root.js

7
app/components/LndSyncing/LndSyncing.js

@ -38,7 +38,7 @@ class LndSyncing extends Component {
} }
render() { render() {
const { newAddress, fetchingBlockHeight, syncPercentage, address: { address } } = this.props const { syncPercentage, address: { address } } = this.props
const { facts, currentFact } = this.state const { facts, currentFact } = this.state
const renderCurrentFact = facts[currentFact] const renderCurrentFact = facts[currentFact]
@ -92,9 +92,10 @@ class LndSyncing extends Component {
} }
LndSyncing.propTypes = { LndSyncing.propTypes = {
newAddress: PropTypes.func.isRequired,
fetchBlockHeight: PropTypes.func.isRequired, fetchBlockHeight: PropTypes.func.isRequired,
fetchingBlockHeight: PropTypes.bool.isRequired, syncPercentage: PropTypes.number.isRequired,
syncPercentage: PropTypes.number.isRequired address: PropTypes.object.isRequired
} }
export default LndSyncing export default LndSyncing

7
app/containers/Root.js

@ -26,7 +26,7 @@ const Root = ({
store, store,
history, history,
lnd, lnd,
newAddress, newAddress, // eslint-disable-line no-shadow
fetchBlockHeight, // eslint-disable-line no-shadow fetchBlockHeight, // eslint-disable-line no-shadow
syncPercentage, syncPercentage,
address address
@ -37,7 +37,6 @@ const Root = ({
<LndSyncing <LndSyncing
newAddress={newAddress} newAddress={newAddress}
fetchBlockHeight={fetchBlockHeight} fetchBlockHeight={fetchBlockHeight}
fetchingBlockHeight={lnd.fetchingBlockHeight}
syncPercentage={syncPercentage} syncPercentage={syncPercentage}
address={address} address={address}
/> />
@ -61,7 +60,9 @@ Root.propTypes = {
history: PropTypes.object.isRequired, history: PropTypes.object.isRequired,
lnd: PropTypes.object.isRequired, lnd: PropTypes.object.isRequired,
fetchBlockHeight: PropTypes.func.isRequired, fetchBlockHeight: PropTypes.func.isRequired,
syncPercentage: PropTypes.number.isRequired newAddress: PropTypes.func.isRequired,
syncPercentage: PropTypes.number.isRequired,
address: PropTypes.object.isRequired
} }
export default connect(mapStateToProps, mapDispatchToProps)(Root) export default connect(mapStateToProps, mapDispatchToProps)(Root)

Loading…
Cancel
Save