|
|
@ -88,14 +88,13 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { |
|
|
|
anvil[ |
|
|
|
anvil[ |
|
|
|
anvil.findIndex((a) => a.anvil_uuid === uuid) |
|
|
|
anvil.findIndex((a) => a.anvil_uuid === uuid) |
|
|
|
].hosts.map( |
|
|
|
].hosts.map( |
|
|
|
( |
|
|
|
(host: AnvilStatusHost): JSX.Element => ( |
|
|
|
host: AnvilStatusHost, |
|
|
|
|
|
|
|
index: number, |
|
|
|
|
|
|
|
): JSX.Element => ( |
|
|
|
|
|
|
|
<Box p={1} key={host.host_uuid}> |
|
|
|
<Box p={1} key={host.host_uuid}> |
|
|
|
<BodyText |
|
|
|
<BodyText |
|
|
|
text={host.host_name} |
|
|
|
text={host.host_name} |
|
|
|
selected={server.server_host_index === index} |
|
|
|
selected={ |
|
|
|
|
|
|
|
server.server_host_uuid === host.host_uuid |
|
|
|
|
|
|
|
} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
), |
|
|
|
), |
|
|
|