From e16d0cd9060f8d5dfca01c0c94aab4ceffcb5b1f Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Tue, 29 Aug 2017 20:23:47 -0500 Subject: [PATCH] fix(lint): fix linting errors --- app/components/CurrencyIcon/CurrencyIcon.js | 10 ++++------ app/components/CurrencyIcon/index.js | 2 +- app/routes/app/components/components/Form/Form.js | 4 +--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/components/CurrencyIcon/CurrencyIcon.js b/app/components/CurrencyIcon/CurrencyIcon.js index f8019579..19840e18 100644 --- a/app/components/CurrencyIcon/CurrencyIcon.js +++ b/app/components/CurrencyIcon/CurrencyIcon.js @@ -3,12 +3,10 @@ import PropTypes from 'prop-types' import { FaDollar } from 'react-icons/lib/fa' import CryptoIcon from '../CryptoIcon' -const CurrencyIcon = ({ currency, crypto }) => { - return currency === 'usd' ? - - : - -} +const CurrencyIcon = ({ currency, crypto }) => (currency === 'usd' ? + + : + ) CurrencyIcon.propTypes = { currency: PropTypes.string.isRequired, diff --git a/app/components/CurrencyIcon/index.js b/app/components/CurrencyIcon/index.js index b0722c92..da33382d 100644 --- a/app/components/CurrencyIcon/index.js +++ b/app/components/CurrencyIcon/index.js @@ -1,3 +1,3 @@ import CurrencyIcon from './CurrencyIcon' -export default CurrencyIcon \ No newline at end of file +export default CurrencyIcon diff --git a/app/routes/app/components/components/Form/Form.js b/app/routes/app/components/components/Form/Form.js index 7f1919a7..a286f67d 100644 --- a/app/routes/app/components/components/Form/Form.js +++ b/app/routes/app/components/components/Form/Form.js @@ -1,8 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import { FaDollar } from 'react-icons/lib/fa' import { MdClose } from 'react-icons/lib/md' -import CryptoIcon from '../../../../../components/CryptoIcon' import CurrencyIcon from '../../../../../components/CurrencyIcon' import { btc } from '../../../../../utils' import styles from './Form.scss' @@ -37,7 +35,7 @@ const Form = ({ } const calculateAmount = value => (currency === 'btc' ? btc.satoshisToBtc(value) : btc.satoshisToUsd(value, currentTicker.price_usd)) - + return (