1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

only output icon if wanted

This commit is contained in:
sveisvei 2016-12-10 15:29:09 +01:00
parent 6216440644
commit b4e600afd9
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ export default class App extends Component {
<a
href={this.context.router.createHref(path)}
className={this.context.router.isActive(path) ? style.active : ''}>
<Icon name={icon} /> {caption}
{icon && <Icon name={icon} />} {caption}
</a>;
return (

View File

@ -93,7 +93,7 @@ export default class FeatureListComponent extends React.PureComponent {
</Menu>
</div>
<Link to="/features/create" className={styles.topListItem0}>
<IconButton ripple raised name="add" component="span" mini style={{ color: 'black' }}/>
<IconButton ripple raised name="add" component="span" style={{ color: 'black' }}/>
</Link>
</div>