From 1457eb54bf2d5d4e58e0cff20ffbb9f63a431460 Mon Sep 17 00:00:00 2001
From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com>
Date: Fri, 21 Jun 2024 13:49:54 +0545
Subject: [PATCH] Fix/legend height fix (#1592)
* fix(mapLegends): map legend cleanup
* fix(accordion): remove ref prop
* fix(projectDetailsV2): add handle click outside on map legend
---
src/frontend/src/components/MapLegends.jsx | 29 ++-----------------
.../src/components/common/Accordion.tsx | 4 ++-
src/frontend/src/views/ProjectDetailsV2.tsx | 8 +++--
3 files changed, 11 insertions(+), 30 deletions(-)
diff --git a/src/frontend/src/components/MapLegends.jsx b/src/frontend/src/components/MapLegends.jsx
index c46b9cce2f..c8a3286ac0 100755
--- a/src/frontend/src/components/MapLegends.jsx
+++ b/src/frontend/src/components/MapLegends.jsx
@@ -2,7 +2,7 @@ import React from 'react';
import CoreModules from '@/shared/CoreModules';
import AssetModules from '@/shared/AssetModules';
-const MapLegends = ({ direction, spacing, iconBtnProps, defaultTheme, valueStatus }) => {
+const MapLegends = ({ iconBtnProps, defaultTheme }) => {
const MapDetails = [
{
value: 'Ready',
@@ -29,11 +29,6 @@ const MapLegends = ({ direction, spacing, iconBtnProps, defaultTheme, valueStatu
color: defaultTheme.palette.mapFeatureColors.validated,
status: 'none',
},
- // {
- // value: 'Bad',
- // color: defaultTheme.palette.mapFeatureColors.bad,
- // status: 'none',
- // },
{
value: 'More mapping needed',
color: defaultTheme.palette.mapFeatureColors.invalidated,
@@ -67,28 +62,8 @@ const MapLegends = ({ direction, spacing, iconBtnProps, defaultTheme, valueStatu
);
};
+
return (
- //
Legend