All files / lib icon.js

100% Statements 30/30
83.33% Branches 5/6
100% Functions 4/4
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 142x   14x   2x   1x 1x       2x    
import React from 'react'
 
import Pure from './pure'
 
export default class Icon extends Pure {
  render () {
    const {className = '', type, ...props} = this.props
    return <i
      className={`fa fa-${type} fa-fw ${className}`}
      {...props}
      />
  }
}