add display of peers

Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
This commit is contained in:
Augustin Husson 2023-03-01 16:06:18 +01:00
parent 0a488e265e
commit cdab0769c6
1 changed files with 22 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import {
Chip,
Container,
List,
ListItem,
SxProps,
Table,
TableCell,
@ -65,6 +67,26 @@ export default function ViewStatus() {
<Chip color={data.cluster.status === 'ready' ? 'success' : 'error'} label={data.cluster.status} />
</TableCell>
</TableRow>
<TableRow>
<TableCell variant="head" sx={tableHeaderStyle}>
Peers
</TableCell>
<TableCell>
<List>
{data.cluster.peers.map((peer, i) => {
return (
<ListItem disablePadding sx={{ display: 'list-item' }} key={i}>
<p>
Name: {peer.name}
<br />
Address: {peer.address}
</p>
</ListItem>
);
})}
</List>
</TableCell>
</TableRow>
</Table>
<Typography variant="h4">Version Information</Typography>
<TableContainer>