2019-09-16 14:53:19 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo-white.svg'
|
|
|
|
import './App.scss'
|
2019-09-16 15:28:52 +02:00
|
|
|
import atlas from '@ethereum-navigator/atlas'
|
2019-09-16 14:53:19 +02:00
|
|
|
import Network from './Network'
|
2019-09-16 11:28:08 +02:00
|
|
|
|
2019-09-16 14:53:19 +02:00
|
|
|
export default function App() {
|
2019-09-16 11:28:08 +02:00
|
|
|
return (
|
|
|
|
<div className="App">
|
2019-09-16 14:53:19 +02:00
|
|
|
<header className="header">
|
|
|
|
<Logo />
|
|
|
|
<h1>Ocean Protocol Status</h1>
|
2019-09-16 11:28:08 +02:00
|
|
|
<p>
|
2019-09-16 14:53:19 +02:00
|
|
|
Testing all RPC network connections from your browser, refreshed every
|
|
|
|
5 sec.
|
2019-09-16 11:28:08 +02:00
|
|
|
</p>
|
|
|
|
</header>
|
2019-09-16 14:53:19 +02:00
|
|
|
|
|
|
|
<div className="networks">
|
2019-09-16 15:28:52 +02:00
|
|
|
{atlas
|
|
|
|
.filter(
|
|
|
|
item => item.project === 'Ocean Protocol' && item.name !== 'Spree'
|
|
|
|
)
|
|
|
|
.reverse()
|
|
|
|
.map((network, i) => (
|
|
|
|
<Network key={i} network={network} />
|
|
|
|
))}
|
2019-09-16 14:53:19 +02:00
|
|
|
</div>
|
2019-09-16 11:28:08 +02:00
|
|
|
</div>
|
2019-09-16 14:53:19 +02:00
|
|
|
)
|
2019-09-16 11:28:08 +02:00
|
|
|
}
|