fixed not showing fontawesome icons

This commit is contained in:
knoxfighter
2018-08-11 18:28:05 +02:00
parent eb112d4ad1
commit b0ffa119b3

View File

@ -5,18 +5,15 @@ import classNames from 'classnames';
class FontAwesomeIcon extends React.Component { class FontAwesomeIcon extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
console.log("huhu");
} }
render() { render() {
let classes = classNames(this.props.prefix, { let classes = classNames(this.props.prefix, {
"fas": !this.props.prefix, "fas": !this.props.prefix,
}, 'fa-' + this.props.icon, this.props.className); }, 'fa-' + this.props.icon, this.props.className);
console.log(classes);
return ( return (
<i className={classes} {...this.props}></i> <i className={classes}></i>
); );
} }
} }