esLint
This commit is contained in:
@@ -5,7 +5,6 @@ import { useEffect, useState } from "react";
|
||||
import { Provider } from "react-redux";
|
||||
import store, { useAppDispatch } from "@/redux/store";
|
||||
import { AppProps } from "next/app";
|
||||
import { loadWindowVariables } from "@/utils/loadWindowVariables";
|
||||
|
||||
import Header from "@/components/header/Header";
|
||||
import Navigation from "@/components/navigation/Navigation";
|
||||
@@ -43,7 +42,7 @@ function AppContent({
|
||||
pageProps: AppProps["pageProps"];
|
||||
}): JSX.Element {
|
||||
const dispatch = useAppDispatch();
|
||||
const [sessionExpired, setSessionExpired] = useState(false);
|
||||
const [sessionExpired] = useState(false);
|
||||
const mode = "DIA0"; // oder aus Router oder Session
|
||||
const type = 0; // Beispiel: 0 für "loop", 1 für "iso" (bitte ggf. anpassen)
|
||||
useEffect(() => {
|
||||
@@ -93,7 +92,7 @@ function AppContent({
|
||||
intervalId = setInterval(loadAndDispatch, 10000);
|
||||
return () => clearInterval(intervalId);
|
||||
}
|
||||
}, []);
|
||||
}, [dispatch]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col h-screen overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user