diff --git a/Client/src/Pages/Infrastructure/index.jsx b/Client/src/Pages/Infrastructure/index.jsx index 41461604e..0baad1962 100644 --- a/Client/src/Pages/Infrastructure/index.jsx +++ b/Client/src/Pages/Infrastructure/index.jsx @@ -125,6 +125,8 @@ function Infrastructure() { const { determineState } = useUtils(); const { monitors, total: totalMonitors } = monitorState; + + console.log(monitors); const monitorsAsRows = monitors.map((monitor) => { const processor = ((monitor.checks[0]?.cpu?.usage_frequency ?? 0) / 1000).toFixed(2) + " GHz"; @@ -224,78 +226,80 @@ function Infrastructure() { - {monitorsAsRows.map((row) => ( - openDetails(row.id)} - sx={{ - cursor: "pointer", - "&:hover": { - backgroundColor: theme.palette.background.accent, - }, - }} - > - {/* TODO iterate over column and get column id, applying row[column.id] */} - - - - - - - - - { + return ( + openDetails(row.id)} + sx={{ + cursor: "pointer", + "&:hover": { + backgroundColor: theme.palette.background.accent, + }, + }} + > + {/* TODO iterate over column and get column id, applying row[column.id] */} + + - {row.processor} - - - - - - - - - - - - - {/* Get ActionsMenu from Monitor Table and create a component */} - - + + - {/* + + + + {row.processor} + + + + + + + + + + + + + {/* Get ActionsMenu from Monitor Table and create a component */} + + + {/* */} - - - - ))} + + + + ); + })}