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:
parent
6216440644
commit
b4e600afd9
@ -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 (
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user