This commit is contained in:
Jose 2020-07-27 23:13:06 -05:00
commit 814a189b49
20 changed files with 351 additions and 101 deletions

View file

@ -0,0 +1,19 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react';
import { NavLink } from 'react-router-dom';
export default class NavItem extends React.Component {
render() {
return (
<li className="nav-item">
<NavLink exact className="nav-link" activeClassName="nav-link active" to={this.props.to}>
<span>
{this.props.icon == null ? '' : <FontAwesomeIcon icon={this.props.icon} /> }
&nbsp;
{this.props.name}
</span>
</NavLink>
</li>
);
}
}