diff --git a/src/components/CameraSettings/CameraSettings.tsx b/src/components/CameraSettings/CameraSettings.tsx index 2a0a68e..7f371c9 100644 --- a/src/components/CameraSettings/CameraSettings.tsx +++ b/src/components/CameraSettings/CameraSettings.tsx @@ -17,7 +17,7 @@ const CameraSettings = ({ }) => { const { data, updateCameraConfig, updateCameraConfigError } = useFetchCameraConfig(side); - console.log(updateCameraConfigError); + return (
diff --git a/src/components/HistoryList/AlertItem.tsx b/src/components/HistoryList/AlertItem.tsx index 89838a2..ccdcb26 100644 --- a/src/components/HistoryList/AlertItem.tsx +++ b/src/components/HistoryList/AlertItem.tsx @@ -15,7 +15,7 @@ type AlertItemProps = { const AlertItem = ({ item }: AlertItemProps) => { const [isModalOpen, setIsModalOpen] = useState(false); - const { dispatch, isError } = useAlertHitContext(); + const { dispatch } = useAlertHitContext(); // const {d} = useCameraBlackboard(); const motionAway = (item?.motion ?? "").toUpperCase() === "AWAY"; @@ -24,7 +24,6 @@ const AlertItem = ({ item }: AlertItemProps) => { const isNPEDHitB = item?.metadata?.npedJSON?.["NPED CATEGORY"] === "B"; const isNPEDHitC = item?.metadata?.npedJSON?.["NPED CATEGORY"] === "C"; - console.log(isError); const handleClick = () => { setIsModalOpen(true); }; diff --git a/src/components/SightingModal/SightingModal.tsx b/src/components/SightingModal/SightingModal.tsx index 4a6167d..ad2b65e 100644 --- a/src/components/SightingModal/SightingModal.tsx +++ b/src/components/SightingModal/SightingModal.tsx @@ -49,10 +49,9 @@ const SightingModal = ({ } dispatch({ type: "ADD", payload: sighting }); - toast.success("Sighting successfully added to alert list"); handleClose(); } catch (error) { - console.log(error); + console.error(error); toast.error("Failed to add sighting to alert list"); handleClose(); } @@ -80,6 +79,42 @@ const SightingModal = ({ Sighting Details
+
+ {onDelete ? ( + + ) : ( + + )} + {onDelete ? ( + + ) : ( + + )} +
@@ -119,13 +154,13 @@ const SightingModal = ({ /> )}
-
+
overview patch -
-
+
{onDelete ? (