From 0fb0e67df474081c3da0e7aba85d4b8a18a2b596 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 15 Oct 2024 21:20:52 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9CbergabeParameter=20f=C3=BCr=20K=C3=9C705-?= =?UTF-8?q?FO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/modules/Kue705FO.jsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index 539e280..871e974 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -2,10 +2,10 @@ import React from "react"; import { Icon } from "@iconify/react"; // Für Iconify Icons function Kue705FO({ - isolationswert, - schleifenwiderstand, - modulName, - kueVersion, + isolationswert, // Übergabeparameter für den Isolationswert + schleifenwiderstand, // Übergabeparameter für den Schleifenwiderstand + modulName, // Übergabeparameter für den Modulnamen + kueVersion = "V4.19", // Optionaler Parameter für die Version (Standardwert) }) { return (
@@ -45,7 +45,8 @@ function Kue705FO({ {/* Isolationswert-Anzeige */}
- {">200"} + {isolationswert || ">200"}{" "} + {/* Dynamischer Isolationswert */}
ISO MOhm
@@ -56,12 +57,12 @@ function Kue705FO({ {/* Modulname-Anzeige */}
- Test1 + {modulName || "Test1"} {/* Dynamischer Modulname */}
{/* Version */}
- V4.19 + {kueVersion} {/* Dynamische Version */}
@@ -82,15 +83,15 @@ function Kue705FO({ {/* Wertanzeige */}
- {/* Schleifenwiderstand */} -
-

{schleifenwiderstand} kOhm

+ {/* Dynamischer Schleifenwiderstand */} +
+

{schleifenwiderstand || "0"} kOhm

{/* Schleife und TDR Buttons nebeneinander */} -
+