init
This commit is contained in:
parent
f03caa7d85
commit
814a189b49
20 changed files with 351 additions and 101 deletions
19
src/components/nav/NavItem.jsx
Normal file
19
src/components/nav/NavItem.jsx
Normal 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} /> }
|
||||
|
||||
{this.props.name}
|
||||
</span>
|
||||
</NavLink>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue