Parsing className

This commit is contained in:
James Barnsley
2018-05-22 21:16:03 +12:00
parent a69c9639dd
commit e3189212b7
9 changed files with 23411 additions and 25325 deletions

View File

@ -22,7 +22,7 @@ export default class Icon extends React.Component{
switch (this.props.type){
case 'fontawesome':
return <FontAwesome className="icon" type="fontawesome" name={this.props.name} onClick={e => this.handleClick(e)} />;
return <FontAwesome className={className} type="fontawesome" name={this.props.name} onClick={e => this.handleClick(e)} />;
default:
className += ' material-icon';