import React, { PropTypes } from 'react'
import SVG from 'svg-inline-react'

const Resource = ({ icon, value }) =>
  <li>
    <SVG src={icon}/>
    <span>{value}</span>
  </li>

Resource.propTypes = {
  icon: PropTypes.object.isRequired,
  value: PropTypes.string.isRequired,
}

export default Resource

import React, { PropTypes } from 'react'
import SVG from 'svg-inline-react'

const Resource = ({ icon, value }) =>
  <li>
    <SVG src={icon}/>
    <span>{value}</span>
  </li>

Resource.propTypes = {
  icon: PropTypes.string.isRequired,
  value: PropTypes.number.isRequired,
}

export default Resource

Fix warnings with wrong PropTypes
Fix warnings with wrong PropTypes
