Browse Source

LoadingContainer cleanup

develop
Ezerous 6 years ago
parent
commit
86ec6e0f9b
  1. 10
      app/src/containers/LoadingContainer.js

10
app/src/containers/LoadingContainer.js

@ -7,11 +7,6 @@ import orbitdb_logo from '../assets/images/orbitdb_logo.png';
class LoadingContainer extends Component {
render() {
if (this.props.web3.status === 'failed' || !this.props.web3.networkId) {
//TODO: wtf is this
if (this.props.errorComp)
return this.props.errorComp;
return (
<main className="container loading-screen">
<div className="pure-g">
@ -85,14 +80,9 @@ class LoadingContainer extends Component {
)
}
//TODO: wtf is this
if (this.props.drizzleStatus.initialized)
return Children.only(this.props.children);
//TODO: wtf is this
if (this.props.loadingComp)
return this.props.loadingComp;
return(
<main className="container loading-screen">
<div>

Loading…
Cancel
Save