From 80b6d8ff40c19e32e69132243615e9b0af31aea6 Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:05:24 +0200 Subject: [PATCH] feat: extended EMS/FD incidents --- .../leo/incidents/manage-incident-modal.tsx | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/apps/client/src/components/leo/incidents/manage-incident-modal.tsx b/apps/client/src/components/leo/incidents/manage-incident-modal.tsx index 0d80d5a3e..20aa72a48 100644 --- a/apps/client/src/components/leo/incidents/manage-incident-modal.tsx +++ b/apps/client/src/components/leo/incidents/manage-incident-modal.tsx @@ -243,14 +243,16 @@ export function ManageIncidentModal({ {t("arrestsMade")} - setFieldValue("vehicleInvolved", isSelected)} - className="w-full" - > - {t("vehicleInvolved")} - + {type === "ems-fd" ? ( + setFieldValue("vehicleInvolved", isSelected)} + className="w-full" + > + {t("vehicleInvolved")} + + ) : null} @@ -275,13 +277,15 @@ export function ManageIncidentModal({ filterFn={(value) => value.type === StatusValueType.SITUATION_CODE} /> - setFieldValue("fireType", value)} - label={t("fireType")} - /> + {type === "ems-fd" ? ( + setFieldValue("fireType", value)} + label={t("fireType")} + /> + ) : null}