small icon correction

This commit is contained in:
Florian Scholdei
2019-01-23 17:14:29 +01:00
parent 27f02c7e87
commit df8f2af341
2 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class NavLink extends React.Component<Props> {
let showIcon = null;
if (icon) {
showIcon = (<><i className={icon}></i>{" "}</>);
showIcon = (<><i className={icon} />{" "}</>);
}
return (

View File

@@ -39,7 +39,8 @@ class SubNavigation extends React.Component<Props> {
return (
<li>
<Link className={this.isActive(route) ? "is-active" : ""} to={to}>
<><i className={defaultIcon}></i>{" "}</>
<i className={defaultIcon} />
{" "}
{label}
</Link>
{children}