The code powering m.abunchtell.com https://m.abunchtell.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

22 行
506 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import classNames from 'classnames';
  4. export default class Icon extends React.PureComponent {
  5. static propTypes = {
  6. id: PropTypes.string.isRequired,
  7. className: PropTypes.string,
  8. fixedWidth: PropTypes.bool,
  9. };
  10. render () {
  11. const { id, className, fixedWidth, ...other } = this.props;
  12. return (
  13. <i role='img' className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })} {...other} />
  14. );
  15. }
  16. }