This commit is contained in:
Ismail Ali
2025-06-26 22:55:26 +02:00
parent 8b3280da0a
commit 137839da98
15 changed files with 3604 additions and 44 deletions

View File

@@ -1,4 +1,9 @@
"use client";
type AnalogInput = {
id: number;
label: string;
unit: string;
};
import React, { useEffect } from "react";
import { Line } from "react-chartjs-2";
import { getColor } from "@/utils/colors";
@@ -38,7 +43,7 @@ export default function AnalogInputsChart({
}) {
const selectedInput = useSelector(
(state: RootState) => state.selectedAnalogInput
);
) as unknown as AnalogInput | null;
const dispatch = useDispatch<AppDispatch>();
const { data } = useSelector(