From 9ad4beb03f7a50f5c153b2d074cca17ab316b124 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 25 Oct 2017 18:29:18 -0500 Subject: [PATCH] fix(lint, tests): fix linting errors and tests --- app/components/GlobalError/GlobalError.js | 1 - app/components/GlobalError/index.js | 2 +- app/components/Nav/Nav.js | 15 ++++----------- app/components/Wallet/Wallet.js | 3 --- app/lnd/methods/index.js | 8 ++++---- app/reducers/channels.js | 3 +-- app/reducers/invoice.js | 2 +- app/reducers/peers.js | 2 +- app/routes/app/components/App.js | 4 +++- app/routes/app/containers/AppContainer.js | 1 - test/components/Channels.spec.js | 1 + test/components/Nav.spec.js | 20 ++------------------ test/components/Peers.spec.js | 3 ++- 13 files changed, 20 insertions(+), 45 deletions(-) diff --git a/app/components/GlobalError/GlobalError.js b/app/components/GlobalError/GlobalError.js index 6fffab17..75f09a1e 100644 --- a/app/components/GlobalError/GlobalError.js +++ b/app/components/GlobalError/GlobalError.js @@ -15,7 +15,6 @@ const GlobalError = ({ error, clearError }) => ( ) - GlobalError.propTypes = { error: PropTypes.string, clearError: PropTypes.func.isRequired diff --git a/app/components/GlobalError/index.js b/app/components/GlobalError/index.js index 41eb98ac..66303b76 100644 --- a/app/components/GlobalError/index.js +++ b/app/components/GlobalError/index.js @@ -1,3 +1,3 @@ import GlobalError from './GlobalError' -export default GlobalError \ No newline at end of file +export default GlobalError diff --git a/app/components/Nav/Nav.js b/app/components/Nav/Nav.js index b274c99e..3fe72ff0 100644 --- a/app/components/Nav/Nav.js +++ b/app/components/Nav/Nav.js @@ -2,10 +2,7 @@ import path from 'path' import React from 'react' import PropTypes from 'prop-types' import { NavLink } from 'react-router-dom' -import ReactSVG from 'react-svg' import Isvg from 'react-inlinesvg' -import { MdAccountBalanceWallet } from 'react-icons/lib/md' -import { FaClockO, FaBolt } from 'react-icons/lib/fa' import styles from './Nav.scss' const Nav = ({ openPayForm, openRequestForm }) => ( @@ -16,32 +13,28 @@ const Nav = ({ openPayForm, openRequestForm }) => (