From 03ddc35df01f16ed40f0c80425177bb5fd09f240 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Thu, 16 Jan 2025 13:39:06 +0100 Subject: [PATCH] fix: managing container's state --- src/components/ContainerInfo.tsx | 7 ++++++- src/pages/container/index.tsx | 7 ++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/ContainerInfo.tsx b/src/components/ContainerInfo.tsx index ddf0d13..116683d 100644 --- a/src/components/ContainerInfo.tsx +++ b/src/components/ContainerInfo.tsx @@ -22,5 +22,10 @@ export default function ContainerInfo() { return "Fetching container info..."; } - return (Hostname: {info.name}); + return ( + <> + Hostname: {info.name} + Memory: {info.memory} + + ); } diff --git a/src/pages/container/index.tsx b/src/pages/container/index.tsx index 1c5f377..cd46647 100644 --- a/src/pages/container/index.tsx +++ b/src/pages/container/index.tsx @@ -19,7 +19,7 @@ export default function ContainerPage() { - Managing: {container.name} + State: {container.state.Status}