fix: Toast-Benachrichtigungen wiederhergestellt durch Einbindung von ToastContainer

- <ToastContainer /> in _app.tsx hinzugefügt
- react-toastify funktioniert jetzt wie vorgesehen (z. B. Firmware-Update Feedback)
- autoClose-Zeit für bessere Sichtbarkeit ggf. angepasst
This commit is contained in:
ISA
2025-07-02 14:24:21 +02:00
parent f50bff4819
commit e9e929f577
6 changed files with 19 additions and 5 deletions

View File

@@ -25,6 +25,9 @@ import { getTDRChartDataByIdThunk } from "@/redux/thunks/getTDRChartDataByIdThun
import { getLoopChartDataThunk } from "@/redux/thunks/getLoopChartDataThunk";
import { getAuthThunks } from "@/redux/thunks/getAuthThunks";
import Modal from "react-modal";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
if (typeof window !== "undefined") {
Modal.setAppElement("#__next"); // oder "#root", je nach App-Struktur
}
@@ -113,6 +116,7 @@ function AppContent({
</div>
)}
<Component {...pageProps} />
<ToastContainer position="top-right" autoClose={3000} />
</main>
</div>
<Footer />