Browse Source

fix(lint-errors): fix linting errors

renovate/lint-staged-8.x
Jack Mallers 8 years ago
parent
commit
6b39527f0c
  1. 12
      app/components/CryptoIcon/CryptoIcon.js
  2. 4
      app/routes/app/components/components/Form/Form.js
  3. 6
      app/routes/app/components/components/Nav.js

12
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 <FaBitcoin />
break
case 'ltc':
return <Isvg src={path.join(__dirname, '..', 'resources/litecoin.svg')}></Isvg>
break
return <Isvg src={path.join(__dirname, '..', 'resources/litecoin.svg')} />
default:
return <span></span>
return <span />
}
}
CryptoIcon.propTypes = {
currency: PropTypes.string.isRequired
}
export default CryptoIcon

4
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'

6
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 }) => (

Loading…
Cancel
Save