Browse Source

Merge pull request #226 from LN-Zap/fix/release

fix(release): prep for release
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
998722cf7b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      app/components/LndSyncing/LndSyncing.js
  2. 2
      app/reducers/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
}

Loading…
Cancel
Save