mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-10 22:26:31 +00:00
- UI shows error screen if contract doesn't exist or fails fetching data - Menu shows selected state and icons can be specified - Component created for card alerts
15 lines
531 B
JavaScript
15 lines
531 B
JavaScript
class MenuItem extends React.Component {
|
|
render(){
|
|
|
|
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}
|
|
</a>;
|
|
}
|
|
}
|