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:
parent
d521e68f77
commit
cd9961c58c
11
src/App.tsx
11
src/App.tsx
@ -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 />
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user