1
0
mirror of https://github.com/oceanprotocol/status synced 2024-11-25 11:28:40 +01:00
status/src/App.js

32 lines
810 B
JavaScript
Raw Normal View History

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'
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">
{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
}