Canvas: Reuse Name component in node details
Change-Id: Ide8094b50f9ac019e7bada9a000100f9233133da
diff --git a/apps/canvas/front/src/components/node-gateway-https.tsx b/apps/canvas/front/src/components/node-gateway-https.tsx
index 6efc356..fe17527 100644
--- a/apps/canvas/front/src/components/node-gateway-https.tsx
+++ b/apps/canvas/front/src/components/node-gateway-https.tsx
@@ -21,6 +21,7 @@
import { Button } from "./ui/button";
import { XIcon } from "lucide-react";
import { Switch } from "./ui/switch";
+import { NodeDetailsProps } from "@/lib/types";
const schema = z.object({
network: z.string().min(1, "reqired"),
@@ -71,7 +72,7 @@
);
}
-export function NodeGatewayHttpsDetails({ node, disabled }: { node: GatewayHttpsNode; disabled?: boolean }) {
+export function NodeGatewayHttpsDetails({ node, disabled }: NodeDetailsProps<GatewayHttpsNode>) {
const { id, data } = node;
const store = useStateStore();
const env = useEnv();