prepair redux

This commit is contained in:
ISA
2024-09-09 15:20:00 +02:00
parent f0c61570a0
commit aa38493f03
9 changed files with 160 additions and 6 deletions

View File

@@ -1,8 +1,12 @@
// /hooks/useLineData.js
import { useEffect, useState } from "react";
import { SERVER_URL } from "../config/urls";
import { useDispatch, useSelector } from "react-redux";
import { connectWebSocket, disconnectWebSocket } from "../redux/actions";
const useLineData = (webserviceGisLinesStatusUrl, setLineStatusData) => {
const dispatch = useDispatch();
const messages = useSelector((state) => state.messages);
const [lineColors, setLineColors] = useState({});
const [tooltipContents, setTooltipContents] = useState({});