Browse Source

fix(lint): fix lint errors

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
f8e15e92e3
  1. 1
      app/components/Activity/PaymentModal.js
  2. 4
      app/components/Wallet/Wallet.js
  3. 3
      app/reducers/payment.js
  4. 6
      app/routes/activity/components/Activity.js

1
app/components/Activity/PaymentModal.js

@ -9,7 +9,6 @@ import { FaAngleDown } from 'react-icons/lib/fa'
import Isvg from 'react-inlinesvg'
import paperPlane from 'icons/paper_plane.svg'
import zap from 'icons/zap.svg'
import { blockExplorer } from 'utils'
import Value from 'components/Value'

4
app/components/Wallet/Wallet.js

@ -97,7 +97,9 @@ Wallet.propTypes = {
currentTicker: PropTypes.object.isRequired,
openPayForm: PropTypes.func.isRequired,
openRequestForm: PropTypes.func.isRequired,
openReceiveModal: PropTypes.func.isRequired
openReceiveModal: PropTypes.func.isRequired,
showPayLoadingScreen: PropTypes.bool.isRequired,
showSuccessPayScreen: PropTypes.bool.isRequired
}
export default Wallet

3
app/reducers/payment.js

@ -3,7 +3,6 @@ import { ipcRenderer } from 'electron'
import { fetchBalance } from './balance'
import { setFormType } from './form'
import { resetPayForm } from './payform'
import { showModal } from './modal'
import { setError } from './error'
// ------------------------------------
@ -96,7 +95,7 @@ export const paymentFailed = (event, { error }) => (dispatch) => {
dispatch(setError(error))
}
export const payInvoice = paymentRequest => (dispatch, getState) => {
export const payInvoice = paymentRequest => (dispatch) => {
dispatch(sendPayment())
ipcRenderer.send('lnd', { msg: 'sendPayment', data: { paymentRequest } })

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

@ -42,9 +42,7 @@ class Activity extends Component {
render() {
const {
invoice: { invoiceLoading },
balance,
payment: { paymentLoading },
activity: {
filters,
filter,
@ -56,8 +54,6 @@ class Activity extends Component {
walletProps
} = this.props
// if (invoiceLoading || paymentLoading) { return <LoadingBolt /> }
// if (balance.balanceLoading) { return <LoadingBolt /> }
if (!balance.channelBalance || !balance.walletBalance) { return <LoadingBolt /> }
return (
@ -102,8 +98,6 @@ Activity.propTypes = {
fetchBalance: PropTypes.func.isRequired,
ticker: PropTypes.object.isRequired,
invoice: PropTypes.object.isRequired,
payment: PropTypes.object.isRequired,
currentTicker: PropTypes.object.isRequired,
showActivityModal: PropTypes.func.isRequired,

Loading…
Cancel
Save