Skip to content

Commit

Permalink
🎉 feat: hover feedback for call events
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed May 8, 2022
1 parent f005fa8 commit 01471ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/components/dispatch/events/EventItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function EventItem<T extends IncidentEvent | Call911Event>({
});

setTempEvent(null);
setOpen(false);
handleClose();
}

Expand All @@ -59,7 +60,7 @@ export function EventItem<T extends IncidentEvent | Call911Event>({
ref={actionsRef}
className={classNames(
"flex justify-between dark:hover:bg-dark-bright hover:bg-gray-200/70 rounded-md px-1.5",
isEditing && "dark:bg-dark-bright bg-gray-200/70",
(isEditing || open) && "dark:bg-dark-bright bg-gray-200/70",
)}
>
<div>
Expand Down Expand Up @@ -91,6 +92,7 @@ export function EventItem<T extends IncidentEvent | Call911Event>({
onDeleteClick={deleteEvent}
title={t("deleteCallEvent")}
id={ModalIds.AlertDeleteCallEvent}
onClose={() => setOpen(false)}
/>
) : null}
</li>
Expand Down

0 comments on commit 01471ea

Please sign in to comment.