wrap table in section

This commit is contained in:
mbecker20
2024-03-25 06:24:19 -07:00
parent 71dd07ac28
commit 06c480ef00

View File

@@ -9,6 +9,7 @@ import {
Database,
ServerIcon,
AlertTriangle,
Rocket,
} from "lucide-react";
import { ServerStats } from "./stats";
import { ConfigInner } from "@components/config";
@@ -224,7 +225,11 @@ export const ServerComponents: RequiredResourceComponents = {
Stats: ({ id }) => <ServerStats server_id={id} />,
Deployments: ({ id }) => {
const deployments = useRead("ListDeployments", {}).data?.filter(deployment => deployment.info.server_id === id);
return <DeploymentTable deployments={deployments} />
return (
<Section title="Deployments" icon={<Rocket className="w-4 h-4" />}>
<DeploymentTable deployments={deployments} />
</Section>
);
},
Config: ({ id }) => <ServerConfig id={id} />,
Danger: ({ id }) => (