diff --git a/app/components/CryptoIcon/CryptoIcon.js b/app/components/CryptoIcon/CryptoIcon.js index b0ed9bda..b9237e7d 100644 --- a/app/components/CryptoIcon/CryptoIcon.js +++ b/app/components/CryptoIcon/CryptoIcon.js @@ -5,16 +5,18 @@ import { FaBitcoin } from 'react-icons/lib/fa' import Isvg from 'react-inlinesvg' const CryptoIcon = ({ currency }) => { - switch(currency) { + switch (currency) { case 'btc': return - break case 'ltc': - return - break + return default: - return + return } } -export default CryptoIcon \ No newline at end of file +CryptoIcon.propTypes = { + currency: PropTypes.string.isRequired +} + +export default CryptoIcon diff --git a/app/routes/app/components/components/Form/Form.js b/app/routes/app/components/components/Form/Form.js index df3bd946..52396a2d 100644 --- a/app/routes/app/components/components/Form/Form.js +++ b/app/routes/app/components/components/Form/Form.js @@ -1,8 +1,8 @@ import React from 'react' import PropTypes from 'prop-types' -import { FaDollar, FaBitcoin } from 'react-icons/lib/fa' +import { FaDollar } from 'react-icons/lib/fa' import { MdClose } from 'react-icons/lib/md' -import CryptoIcon from 'components/CryptoIcon' +import CryptoIcon from '../../../../../components/CryptoIcon' import { btc } from '../../../../../utils' import styles from './Form.scss' diff --git a/app/routes/app/components/components/Nav.js b/app/routes/app/components/components/Nav.js index 55a4a8eb..0525b6a2 100644 --- a/app/routes/app/components/components/Nav.js +++ b/app/routes/app/components/components/Nav.js @@ -2,10 +2,10 @@ import React from 'react' import PropTypes from 'prop-types' import { NavLink } from 'react-router-dom' import ReactSVG from 'react-svg' -import { MdAccountBalanceWallet, MdSettings } from 'react-icons/lib/md' -import { FaClockO, FaBitcoin, FaDollar } from 'react-icons/lib/fa' +import { MdAccountBalanceWallet } from 'react-icons/lib/md' +import { FaClockO, FaDollar } from 'react-icons/lib/fa' +import CryptoIcon from '../../../../components/CryptoIcon' import { btc } from '../../../../utils' -import CryptoIcon from 'components/CryptoIcon' import styles from './Nav.scss' const Nav = ({ ticker, balance, setCurrency, formClicked, currentTicker }) => (