Browse Source

fix(lint): fix linting errors

renovate/lint-staged-8.x
Jack Mallers 8 years ago
parent
commit
e16d0cd906
  1. 10
      app/components/CurrencyIcon/CurrencyIcon.js
  2. 2
      app/routes/app/components/components/Form/Form.js

10
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' ?
<FaDollar />
:
<CryptoIcon currency={crypto} />
}
const CurrencyIcon = ({ currency, crypto }) => (currency === 'usd' ?
<FaDollar />
:
<CryptoIcon currency={crypto} />)
CurrencyIcon.propTypes = {
currency: PropTypes.string.isRequired,

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

Loading…
Cancel
Save