diff --git a/src/components/kyl_MWSProfilePanel.jsx b/src/components/kyl_MWSProfilePanel.jsx index c6180897..d0f81430 100644 --- a/src/components/kyl_MWSProfilePanel.jsx +++ b/src/components/kyl_MWSProfilePanel.jsx @@ -1,4 +1,4 @@ -import { ArrowLeft } from 'lucide-react'; +import { ArrowLeft, X } from 'lucide-react'; import { stateAtom, districtAtom, blockAtom, dataJsonAtom } from '../store/locationStore.jsx'; import { useRecoilValue } from 'recoil'; import { useEffect, useState } from 'react'; @@ -6,7 +6,7 @@ import { trackEvent } from "../services/analytics.js"; import { CheckCircle2, Layers3,Table } from "lucide-react"; const KYLMWSProfilePanel = ({ mwsData, onBack, hideBackButton = false, onResetMWS,onOpenSelection, - selectedMWS = [], intersectingVillages = [], }) => { + selectedMWS = [], intersectingVillages = [],onRemoveMWS }) => { const state = useRecoilValue(stateAtom); const district = useRecoilValue(districtAtom); const block = useRecoilValue(blockAtom); @@ -67,10 +67,7 @@ const KYLMWSProfilePanel = ({ mwsData, onBack, hideBackButton = false, onResetMW {hideBackButton && (

Micro watershed profile

- )} - - - + )} {selectedMWS.length <= 1 ? ( @@ -123,67 +120,124 @@ const KYLMWSProfilePanel = ({ mwsData, onBack, hideBackButton = false, onResetMW

+ {onOpenSelection && ( +
+