diff --git a/frontend-v2/src/components/resources/server/index.tsx b/frontend-v2/src/components/resources/server/index.tsx index 1959290a0..1bd1467fe 100644 --- a/frontend-v2/src/components/resources/server/index.tsx +++ b/frontend-v2/src/components/resources/server/index.tsx @@ -48,18 +48,15 @@ const ServerInfo = ({ id }: { id: string }) => { ); }; -const ServerIconComponent = ({ id }: { id: string }) => { +const ServerIconComponent = ({ id }: { id?: string }) => { const status = useServer(id)?.info.status; - return ( - - ); + + const color = () => { + if (status === Types.ServerStatus.Ok) return "fill-green-500"; + if (status === Types.ServerStatus.NotOk) return "fill-red-500"; + if (status === Types.ServerStatus.Disabled) return "fill-blue-500"; + }; + return ; }; const ServerConfig = ({ id }: { id: string }) => {