diff --git a/apps/dispatch/app/(dispatch)/_components/Map.tsx b/apps/dispatch/app/(dispatch)/_components/Map.tsx index 7742f257..50dcd834 100644 --- a/apps/dispatch/app/(dispatch)/_components/Map.tsx +++ b/apps/dispatch/app/(dispatch)/_components/Map.tsx @@ -4,6 +4,7 @@ import { useEffect, useRef } from "react"; import L from "leaflet"; import "leaflet/dist/leaflet.css"; import ToastCard from "./toast/ToastCard"; +import { Toast, ToastBar, Toaster, toast } from "react-hot-toast"; export default () => { const mapRef = useRef(null); @@ -27,6 +28,23 @@ export default () => { return (
+
+ +
{ content: `Inhalt von Einsatz #${cards.length + 1}.`, }; setCards([...cards, newCard]); + // DEBUG + /* toast("😖 Christoph 31 sendet Status 4", { + duration: 10000, + }); */ + // DEBUG + const toastId = toast.custom( +
+
+ 😖 Christoph 31 sendet Status 5{" "} + +
+
, + { + duration: 999999999, + }, + ); + // DEBUG }; const removeCard = (id: number) => {