|
|
@ -29,13 +29,11 @@ class LoadingContainer extends Component { |
|
|
|
if (this.props.web3.status === 'initialized' && Object.keys(this.props.accounts).length === 0) { |
|
|
|
return( |
|
|
|
<main className="loading-screen"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={ethereum_logo} alt="ethereum_logo" className="loading-img"/> |
|
|
|
<p><strong>We can't find any Ethereum accounts!</strong></p> |
|
|
|
<p>Please make sure that MetaMask is unlocked.</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
) |
|
|
|
} |
|
|
@ -43,7 +41,6 @@ class LoadingContainer extends Component { |
|
|
|
if (!this.props.contractInitialized) { |
|
|
|
return( |
|
|
|
<main className="loading-screen"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={ethereum_logo} alt="ethereum_logo" className="loading-img"/> |
|
|
|
<p><strong>Initializing contracts...</strong></p> |
|
|
@ -51,7 +48,6 @@ class LoadingContainer extends Component { |
|
|
|
and you are connected to the correct one. |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
) |
|
|
|
} |
|
|
@ -59,25 +55,24 @@ class LoadingContainer extends Component { |
|
|
|
if (!this.props.ipfsInitialized) { |
|
|
|
return( |
|
|
|
<main className="loading-screen"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={ipfs_logo} alt="ipfs_logo" className="loading-img"/> |
|
|
|
<p><strong>Initializing IPFS...</strong></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.props.orbitReady) { |
|
|
|
const message = process.env.NODE_ENV ==='development' ? |
|
|
|
"If needed, please sign the transaction in MetaMask to create the databases." : |
|
|
|
"Please sign the transaction in MetaMask to create the databases."; |
|
|
|
return( |
|
|
|
<main className="loading-screen"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={orbitdb_logo} alt="orbitdb_logo" className="loading-img"/> |
|
|
|
<p><strong>Preparing OrbitDB...</strong></p> |
|
|
|
<p>Please sign the transaction in MetaMask to create the databases.</p> |
|
|
|
</div> |
|
|
|
<p>{message}</p> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
) |
|
|
@ -88,12 +83,10 @@ class LoadingContainer extends Component { |
|
|
|
|
|
|
|
return( |
|
|
|
<main className="loading-screen"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={logo} alt="app_logo" className="loading-img"/> |
|
|
|
<p><strong>Loading dapp...</strong></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
) |
|
|
|
} |
|
|
|