Files
weave-scope/client/app/scripts/components/status.js
David Kaltschmidt 7d1ee40a2b Fixed lint errors in all js files
- Also added linter configuration, and make linter fail on error
- fixing ES6 errors and added ES6 transformer
- gulp target to try local build
- linted gulpfile
- cant hook into gulp lint yet, because gulp does currently not support
  ES6 which some rules demand, since gulp cant transpile itself, we have a
  chicken and egg problem.
- ES6 transpiler for test runner
- removed old linter config
- adapted editorconfig to reflect linter config
2015-05-28 15:07:13 +00:00

27 lines
576 B
JavaScript

const React = require('react');
const Status = React.createClass({
renderConnectionState: function() {
return (
<div className="status-connection">
<span className="status-icon fa fa-exclamation-circle" />
<span className="status-label">Scope is disconnected</span>
</div>
);
},
render: function() {
const isDisconnected = this.props.connectionState === 'disconnected';
return (
<div className="status">
{isDisconnected && this.renderConnectionState()}
</div>
);
}
});
module.exports = Status;