Daten von 118. in mocks geholt
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user