2018-04-18 19:06:41 +00:00
|
|
|
class MenuItem extends React.Component {
|
|
|
|
render(){
|
2018-04-19 13:59:48 +00:00
|
|
|
|
|
|
|
let classNames = "list-group-item list-group-item-action d-flex align-items-center ";
|
|
|
|
let icon = "fe " + this.props.icon;
|
|
|
|
if(this.props.target == this.props.selectedTab){
|
|
|
|
classNames += "active";
|
|
|
|
}
|
|
|
|
|
|
|
|
return <a href="#" onClick={this.props.click} data-target={this.props.target} className={classNames}>
|
|
|
|
<span className="icon mr-3"><i className={icon}></i></span>{this.props.text}
|
2018-04-18 19:06:41 +00:00
|
|
|
</a>;
|
|
|
|
}
|
|
|
|
}
|