Browse Source

fix(release): prep for release

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
0ebe9ea43f
  1. 20
      app/components/LndSyncing/LndSyncing.js
  2. 2
      app/reducers/activity.js
  3. 2
      app/routes/activity/components/Activity.js

20
app/components/LndSyncing/LndSyncing.js

@ -2,7 +2,6 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import copy from 'copy-to-clipboard'
import { showNotification } from 'notifications'
import { FaCopy } from 'react-icons/lib/fa'
import styles from './LndSyncing.scss'
@ -36,26 +35,11 @@ class LndSyncing extends Component {
this.props.fetchBlockHeight()
}
componentDidUpdate(prevProps) {
const { grpcStarted, newAddress } = this.props
if (!prevProps.grpcStarted && grpcStarted) {
newAddress('np2wkh')
}
}
render() {
const { syncPercentage, address: { addressLoading, address } } = this.props
const { syncPercentage } = this.props
const { facts, currentFact } = this.state
const renderCurrentFact = facts[currentFact]
const copyOnClick = () => {
if (!address || !address.length) { return }
copy(address)
showNotification('Noice', 'Successfully copied to clipboard')
}
return (
<div className={styles.container}>
<header>
@ -91,13 +75,11 @@ class LndSyncing extends Component {
}
LndSyncing.propTypes = {
newAddress: PropTypes.func.isRequired,
fetchBlockHeight: PropTypes.func.isRequired,
syncPercentage: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]).isRequired,
address: PropTypes.object.isRequired,
grpcStarted: PropTypes.bool.isRequired
}

2
app/reducers/activity.js

@ -101,7 +101,7 @@ const allActivity = createSelector(
const searchedArr = [...payments, ...invoices, ...transactions].filter((tx) => {
if ((tx.tx_hash && tx.tx_hash.includes(searchText)) ||
(tx.payment_hash && tx.payment_hash.includes(searchText)) ||
(tx.r_hash && tx.r_hash.includes(searchText))) {
(tx.payment_request && tx.payment_request.includes(searchText))) {
return true
}

2
app/routes/activity/components/Activity.js

@ -67,6 +67,8 @@ class Activity extends Component {
if (balance.balanceLoading) { return <LoadingBolt /> }
if (!balance.channelBalance || !balance.walletBalance) { return <LoadingBolt /> }
console.log('currentActivity: ', currentActivity)
return (
<div>
<Modal

Loading…
Cancel
Save