|
|
|
@ -1,7 +1,6 @@ |
|
|
|
|
import { Box } from '@material-ui/core'; |
|
|
|
|
import { makeStyles } from '@material-ui/core/styles'; |
|
|
|
|
|
|
|
|
|
import Header from '../components/Header'; |
|
|
|
|
import Anvils from '../components/Anvils'; |
|
|
|
|
import Nodes from '../components/Nodes'; |
|
|
|
|
import CPU from '../components/CPU'; |
|
|
|
@ -10,7 +9,7 @@ import Memory from '../components/Memory'; |
|
|
|
|
import Network from '../components/Network'; |
|
|
|
|
import PeriodicFetch from '../lib/fetchers/periodicFetch'; |
|
|
|
|
import Servers from '../components/Servers'; |
|
|
|
|
|
|
|
|
|
import Header from '../components/Header'; |
|
|
|
|
import AnvilProvider from '../components/AnvilContext'; |
|
|
|
|
|
|
|
|
|
const useStyles = makeStyles(() => ({ |
|
|
|
@ -34,17 +33,15 @@ const Home = (): JSX.Element => { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<Header /> |
|
|
|
|
<AnvilProvider> |
|
|
|
|
<Header /> |
|
|
|
|
{data?.anvils && ( |
|
|
|
|
<Box |
|
|
|
|
display="flex" |
|
|
|
|
flexDirection="row" |
|
|
|
|
width="100%" |
|
|
|
|
justifyContent="space-between" |
|
|
|
|
alignContent="flex-start" |
|
|
|
|
> |
|
|
|
|
{data?.anvils && ( |
|
|
|
|
<> |
|
|
|
|
<Box p={1} className={classes.child}> |
|
|
|
|
<Anvils list={data} /> |
|
|
|
|
<Nodes anvil={data.anvils} /> |
|
|
|
@ -60,9 +57,8 @@ const Home = (): JSX.Element => { |
|
|
|
|
<CPU /> |
|
|
|
|
<Memory /> |
|
|
|
|
</Box> |
|
|
|
|
</> |
|
|
|
|
)} |
|
|
|
|
</Box> |
|
|
|
|
)} |
|
|
|
|
</AnvilProvider> |
|
|
|
|
</> |
|
|
|
|
); |
|
|
|
|