fix: Build-Fehler behoben durch Entfernen unnötiger Prop-Weitergabe
- `isFullScreen` wurde in `ChartSwitcher.tsx` nicht mehr als Prop übergeben - `LoopMeasurementChart.tsx` und `TDRChart.tsx` nutzen Redux-Store direkt - Build erfolgreich nach Anpassung
This commit is contained in:
@@ -115,7 +115,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({ isOpen, onClose }) => {
|
|||||||
<h3 className="text-lg font-semibold">Schleifenmessung</h3>
|
<h3 className="text-lg font-semibold">Schleifenmessung</h3>
|
||||||
<LoopChartActionBar />
|
<LoopChartActionBar />
|
||||||
<div style={{ flex: 1, height: "90%" }}>
|
<div style={{ flex: 1, height: "90%" }}>
|
||||||
<LoopMeasurementChart isFullScreen={isFullScreen} />
|
<LoopMeasurementChart />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
@@ -123,7 +123,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({ isOpen, onClose }) => {
|
|||||||
<h3 className="text-lg font-semibold">TDR-Messung</h3>
|
<h3 className="text-lg font-semibold">TDR-Messung</h3>
|
||||||
<TDRChartActionBar />
|
<TDRChartActionBar />
|
||||||
<div style={{ flex: 1, height: "90%" }}>
|
<div style={{ flex: 1, height: "90%" }}>
|
||||||
<TDRChart isFullScreen={isFullScreen} />
|
<TDRChart />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ import { useSelector } from "react-redux";
|
|||||||
import { RootState } from "../../../../../../redux/store";
|
import { RootState } from "../../../../../../redux/store";
|
||||||
import Chart from "chart.js/auto";
|
import Chart from "chart.js/auto";
|
||||||
import "chartjs-adapter-moment";
|
import "chartjs-adapter-moment";
|
||||||
|
// 🟢 **Prop-Typ für isFullScreen hinzufügen**
|
||||||
|
interface LoopMeasurementChartProps {
|
||||||
|
isFullScreen: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
const LoopMeasurementChart = () => {
|
const LoopMeasurementChart = () => {
|
||||||
const isFullScreen = useSelector(
|
const isFullScreen = useSelector(
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ import { useSelector } from "react-redux";
|
|||||||
import { Chart, registerables } from "chart.js";
|
import { Chart, registerables } from "chart.js";
|
||||||
import "chartjs-adapter-date-fns";
|
import "chartjs-adapter-date-fns";
|
||||||
|
|
||||||
|
// 🟢 **Prop-Typ für isFullScreen hinzufügen**
|
||||||
|
interface TDRChartProps {
|
||||||
|
isFullScreen: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
const TDRChart: React.FC = () => {
|
const TDRChart: React.FC = () => {
|
||||||
const isFullScreen = useSelector(
|
const isFullScreen = useSelector(
|
||||||
(state: RootState) => state.kabelueberwachungChart.isFullScreen
|
(state: RootState) => state.kabelueberwachungChart.isFullScreen
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.109";
|
const webVersion = "1.6.110";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user