More deploy stuff

This commit is contained in:
Wilhelm Westermark
2018-11-11 17:24:57 +01:00
parent 839d2f87f5
commit 706038bf09
112 changed files with 10585 additions and 1 deletions
@@ -0,0 +1,32 @@
import React, { Component } from 'react';
import './WebSocketStatus.scss';
class WebSocketStatus extends Component {
render() {
if(this.props.wsIsOpen && !this.props.wsIsAuthenticated)
return (
<div className="WebSocketStatus">
Authenticating against {this.props.wsURI}
</div>
);
if(this.props.wsIsRecovering)
return (
<div className="WebSocketStatus">
Reconnecting to {this.props.wsURI}
</div>
);
if(this.props.wsIsOpen)
return (
<div className="WebSocketStatus">
Receiving real time updates from {this.props.wsURI}
</div>
);
return null;
}
}
export default WebSocketStatus;