From 468a4f1dc4baa864b17501e94948ed4471dd2610 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Sun, 21 Jan 2018 21:31:14 -0600 Subject: [PATCH] fix(lint): fix linting errors --- app/components/LndSyncing/LndSyncing.js | 4 ++-- app/main.dev.js | 5 +++-- app/routes/help/components/Help.js | 10 +++------- app/routes/help/containers/HelpContainer.js | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/components/LndSyncing/LndSyncing.js b/app/components/LndSyncing/LndSyncing.js index 0caa559f..8933416a 100644 --- a/app/components/LndSyncing/LndSyncing.js +++ b/app/components/LndSyncing/LndSyncing.js @@ -38,7 +38,7 @@ class LndSyncing extends Component { componentDidUpdate(prevProps) { const { grpcStarted, newAddress } = this.props - + if (!prevProps.grpcStarted && grpcStarted) { newAddress('np2wkh') } @@ -51,7 +51,7 @@ class LndSyncing extends Component { const copyOnClick = () => { if (!address) { return } - + copy(address) showNotification('Noice', 'Successfully copied to clipboard') } diff --git a/app/main.dev.js b/app/main.dev.js index 0485b86a..2a499802 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -128,10 +128,11 @@ const sendLndSynced = () => { // Starts the LND node const startLnd = () => { let lndPath - process.env.NODE_ENV === 'development' ? + if (process.env.NODE_ENV === 'development') { lndPath = path.join(__dirname, '..', 'resources', 'bin', plat, plat === 'win32' ? 'lnd.exe' : 'lnd') - : + } else { lndPath = path.join(__dirname, '..', 'bin', plat === 'win32' ? 'lnd.exe' : 'lnd') + } const neutrino = spawn(lndPath, [ diff --git a/app/routes/help/components/Help.js b/app/routes/help/components/Help.js index e2f15b68..0eb5f8d6 100644 --- a/app/routes/help/components/Help.js +++ b/app/routes/help/components/Help.js @@ -1,6 +1,5 @@ import { shell } from 'electron' import React, { Component } from 'react' -import PropTypes from 'prop-types' import { MdSearch } from 'react-icons/lib/md' @@ -67,17 +66,18 @@ class Help extends Component {