refactor: remove style from Grid item and hide Storage component

main
Josue 4 years ago committed by Tsu-ba-me
parent f4a42a8e6d
commit 0c43b126c8
  1. 9
      striker-ui/pages/index.tsx

@ -9,7 +9,6 @@ import Memory from '../components/Memory';
import Network from '../components/Network'; import Network from '../components/Network';
import PeriodicFetch from '../lib/fetchers/periodicFetch'; import PeriodicFetch from '../lib/fetchers/periodicFetch';
import Servers from '../components/Servers'; import Servers from '../components/Servers';
import Storage from '../components/Storage';
const useStyles = makeStyles(() => ({ const useStyles = makeStyles(() => ({
grid: { grid: {
@ -28,12 +27,7 @@ const Home = (): JSX.Element => {
return ( return (
<Grid container alignItems="center" justify="space-around"> <Grid container alignItems="center" justify="space-around">
<Grid item xs={3}> <Grid item xs={3}>
<Grid <Grid container justify="flex-start" direction="column">
container
justify="flex-start"
direction="column"
// className={classes.grid}
>
<Anvils list={data} /> <Anvils list={data} />
<Nodes anvil={data?.anvils[0]} /> <Nodes anvil={data?.anvils[0]} />
</Grid> </Grid>
@ -55,7 +49,6 @@ const Home = (): JSX.Element => {
direction="column" direction="column"
className={classes.grid} className={classes.grid}
> >
<Storage uuid={data?.anvils[0].anvil_uuid} />
<SharedStorage anvil={data?.anvils[0]} /> <SharedStorage anvil={data?.anvils[0]} />
</Grid> </Grid>
</Grid> </Grid>

Loading…
Cancel
Save