Browse Source

fix(sync): fix lint errors

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

11
app/components/LndSyncing/LndSyncing.js

@ -32,13 +32,13 @@ class LndSyncing extends Component {
componentWillMount() {
const { fetchBlockHeight, newAddress } = this.props
fetchBlockHeight()
newAddress('np2wkh')
}
render() {
const { newAddress, fetchingBlockHeight, syncPercentage, address: { address } } = this.props
const { syncPercentage, address: { address } } = this.props
const { facts, currentFact } = this.state
const renderCurrentFact = facts[currentFact]
@ -92,9 +92,10 @@ class LndSyncing extends Component {
}
LndSyncing.propTypes = {
newAddress: 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,
history,
lnd,
newAddress,
newAddress, // eslint-disable-line no-shadow
fetchBlockHeight, // eslint-disable-line no-shadow
syncPercentage,
address
@ -37,7 +37,6 @@ const Root = ({
<LndSyncing
newAddress={newAddress}
fetchBlockHeight={fetchBlockHeight}
fetchingBlockHeight={lnd.fetchingBlockHeight}
syncPercentage={syncPercentage}
address={address}
/>
@ -61,7 +60,9 @@ Root.propTypes = {
history: PropTypes.object.isRequired,
lnd: PropTypes.object.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)

Loading…
Cancel
Save