2019-12-08 22:43:49 +01:00
|
|
|
/** @jsx React.DOM */
|
|
|
|
|
2022-10-08 20:37:38 +02:00
|
|
|
var Nav = createReactClass({
|
2019-12-08 22:43:49 +01:00
|
|
|
render: function() {
|
|
|
|
var title = (
|
2022-10-08 23:26:48 +02:00
|
|
|
<>
|
2019-12-08 22:43:49 +01:00
|
|
|
{this.props.title}
|
|
|
|
{this.props.showAlert ?
|
2020-12-17 22:47:36 +01:00
|
|
|
<span className="alert">{ "\u26a0" }</span> :
|
2019-12-08 22:43:49 +01:00
|
|
|
null
|
|
|
|
}
|
2022-10-08 23:26:48 +02:00
|
|
|
</>
|
2019-12-08 22:43:49 +01:00
|
|
|
);
|
|
|
|
return (
|
|
|
|
<Button
|
2022-10-08 21:29:14 +02:00
|
|
|
className={classNames("nav", {"active": this.props.active}, this.props.title)}
|
2019-12-08 22:43:49 +01:00
|
|
|
disabled={this.props.disabled}
|
|
|
|
style={this.props.style}
|
|
|
|
onClick={function(event) {
|
|
|
|
this.props.onClick(event);
|
|
|
|
}.bind(this)}
|
|
|
|
title={title}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|