1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-19 01:17:18 +02: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 <a
href={this.context.router.createHref(path)} href={this.context.router.createHref(path)}
className={this.context.router.isActive(path) ? style.active : ''}> className={this.context.router.isActive(path) ? style.active : ''}>
<Icon name={icon} /> {caption} {icon && <Icon name={icon} />} {caption}
</a>; </a>;
return ( return (

View File

@ -93,7 +93,7 @@ export default class FeatureListComponent extends React.PureComponent {
</Menu> </Menu>
</div> </div>
<Link to="/features/create" className={styles.topListItem0}> <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> </Link>
</div> </div>