mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
25 lines
507 B
JavaScript
25 lines
507 B
JavaScript
const React = require('react');
|
|
|
|
const NodesError = React.createClass({
|
|
|
|
render: function() {
|
|
let classNames = 'nodes-chart-error';
|
|
if (this.props.hidden) {
|
|
classNames += ' hide';
|
|
}
|
|
const iconClassName = 'fa ' + this.props.faIconClass;
|
|
|
|
return (
|
|
<div className={classNames}>
|
|
<div className="nodes-chart-error-icon">
|
|
<span className={iconClassName} />
|
|
</div>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = NodesError;
|