refactor: change the home page to take advantage of React context

main
Josue 4 years ago committed by Tsu-ba-me
parent bd4d5a1dda
commit 36c4bae2bd
  1. 10
      striker-ui/pages/index.tsx

@ -47,18 +47,18 @@ const Home = (): JSX.Element => {
<> <>
<Box p={1} className={classes.child}> <Box p={1} className={classes.child}>
<Anvils list={data} /> <Anvils list={data} />
<Nodes anvil={data.anvils[0]} /> <Nodes anvil={data.anvils} />
</Box> </Box>
<Box p={1} className={classes.server}> <Box p={1} className={classes.server}>
<Servers anvil={data.anvils} /> <Servers anvil={data.anvils} />
</Box> </Box>
<Box p={1} className={classes.child}> <Box p={1} className={classes.child}>
<SharedStorage anvil={data.anvils[0]} /> <SharedStorage anvil={data.anvils} />
</Box> </Box>
<Box p={1} className={classes.child}> <Box p={1} className={classes.child}>
<Network anvil={data.anvils[0]} /> <Network />
<CPU uuid={data.anvils[0].anvil_uuid} /> <CPU />
<Memory uuid={data.anvils[0].anvil_uuid} /> <Memory />
</Box> </Box>
</> </>
)} )}

Loading…
Cancel
Save