From 997a259e869dbe96c4a6991333617688696ee0c2 Mon Sep 17 00:00:00 2001 From: Manvi Date: Mon, 7 Sep 2026 18:09:57 +0530 Subject: [PATCH 1/2] Fix:Reorganization of the view seelction, selected mws and selected villages and also add the X button on multislect mwses against each mws list --- src/components/kyl_MWSProfilePanel.jsx | 152 +++++++++++++++++-------- src/components/kyl_rightSidebar.jsx | 39 +++++++ src/pages/kyl_dashboard.jsx | 36 ++++++ 3 files changed, 178 insertions(+), 49 deletions(-) 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 && ( +
+