Files
weave-scope/client/app/scripts/charts/nodes-error.js
David Kaltschmidt acbf8a665d Upgrade eslint, react and react-motion
* get rid of material-ui
* reduced bundle size by 20%
2015-11-11 15:51:27 +01:00

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;