1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

initial loading fixes

This commit is contained in:
Matthias Kretschmann 2019-02-13 12:39:04 +01:00
parent d521e68f77
commit cd9961c58c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -3,6 +3,7 @@ import Web3 from 'web3'
import { BrowserRouter as Router } from 'react-router-dom'
import Header from './components/Header'
import Footer from './components/Footer'
import Spinner from './components/atoms/Spinner'
import { User } from './context/User'
import { provideOcean } from './ocean'
import Routes from './Routes'
@ -124,11 +125,13 @@ class App extends Component<{}, AppState> {
<>
<Header />
{!this.state.isLoading ? (
<main className={styles.main}>
<main className={styles.main}>
{this.state.isLoading ? (
<Spinner />
) : (
<Routes />
</main>
) : null}
)}
</main>
<Footer />
</>