Daten von 118. in mocks geholt

This commit is contained in:
ISA
2025-08-11 12:07:47 +02:00
parent c107738625
commit 806eaaeff7
53 changed files with 158942 additions and 158805 deletions

View File

@@ -3,6 +3,7 @@
import React, { useEffect } from "react";
import ReactModal from "react-modal";
import LoopMeasurementChart from "./LoopMeasurementChart";
import Report from "../IsoMeasurementChart/Report";
import LoopChartActionBar from "./LoopChartActionBar";
import { useSelector, useDispatch } from "react-redux";
import { AppDispatch } from "@/redux/store";
@@ -46,10 +47,7 @@ const LoopChartView: React.FC<LoopChartViewProps> = ({
// useLoopChartLoader hook
const loadLoopChartData = useLoopChartLoader();
// Slot number from Redux
const slotNumber = useSelector(
(state: RootState) => state.kabelueberwachungChartSlice.slotNumber
);
// slotNumber nicht direkt benötigt wird intern über Redux genutzt
// **Modal schließen + Redux-Status zurücksetzen**
const handleClose = () => {
@@ -180,10 +178,12 @@ const LoopChartView: React.FC<LoopChartViewProps> = ({
height: "100%",
}}
>
<h3 className="text-lg font-semibold">{chartTitle}</h3>
<h3 className="text-lg font-semibold">
{chartTitle === "Messkurve" ? "Schleifenwiderstand" : "Meldungen"}
</h3>
<LoopChartActionBar />
<div style={{ flex: 1, height: "90%" }}>
<LoopMeasurementChart />
{chartTitle === "Messkurve" ? <LoopMeasurementChart /> : <Report />}
</div>
</div>
</ReactModal>