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:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user