From 54b9392d4bdcdd9ad6b385ba5b70ea5f65b69052 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 7 Mar 2022 03:29:56 -0800 Subject: [PATCH] Add missing front line click handlers. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2056 --- client/src/components/frontline/FrontLine.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/client/src/components/frontline/FrontLine.tsx b/client/src/components/frontline/FrontLine.tsx index f63db0ae..d313d48e 100644 --- a/client/src/components/frontline/FrontLine.tsx +++ b/client/src/components/frontline/FrontLine.tsx @@ -1,4 +1,7 @@ -import { FrontLine as FrontLineModel } from "../../api/liberationApi"; +import { + FrontLine as FrontLineModel, + useOpenNewFrontLinePackageDialogMutation, +} from "../../api/liberationApi"; import { Polyline } from "react-leaflet"; interface FrontLineProps { @@ -6,8 +9,18 @@ interface FrontLineProps { } function FrontLine(props: FrontLineProps) { + const [openNewPackageDialog] = useOpenNewFrontLinePackageDialogMutation(); return ( - + { + openNewPackageDialog({ frontLineId: props.front.id }); + }, + }} + /> ); }