git commit -m "Entferne Modulnummer und Icon aus Tooltip im TDR-Chart"

This commit is contained in:
ISA
2025-03-20 15:18:21 +01:00
parent 75529f030e
commit d5cf14ef87
3 changed files with 9 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
// **Redux-States für aktive Messkurve (TDR oder Schleife)**
const activeMode = useSelector(
(state: RootState) => state.tdrChart.selectedChartType
(state: RootState) => state.kueChartMode.activeMode
);
const isFullScreen = useSelector(
(state: RootState) => state.kabelueberwachungChart.isFullScreen
@@ -142,26 +142,6 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
height: "100%",
}}
>
{/* Auswahl zwischen TDR und Schleife */}
<div className="flex space-x-4 mb-4">
<button
className={`p-2 text-white ${
activeMode === "TDR" ? "bg-blue-500" : "bg-gray-400"
}`}
onClick={() => setChartType("TDR")}
>
TDR
</button>
<button
className={`p-2 text-white ${
activeMode === "Schleife" ? "bg-blue-500" : "bg-gray-400"
}`}
onClick={() => setChartType("Schleife")}
>
Schleife
</button>
</div>
{activeMode === "Schleife" ? (
<>
<h3 className="text-lg font-semibold">Schleifenmessung</h3>