Skip to content

Commit 3cba957

Browse files
committed
minor modifications
1 parent e8cf1a6 commit 3cba957

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/BMDashboard/InteractiveMap/InteractiveMap.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// components/InteractiveMap.jsx
21
import { useState, useEffect } from 'react';
32
import { useSelector } from 'react-redux';
43
import { useHistory } from 'react-router-dom';
54
import { useProjectsData } from '../../../hooks/useProjectsData';
65
import BaseInteractiveMap from './BaseInteractiveMap';
76
import { MapUtils } from './MapSharedComponents';
87
import 'leaflet/dist/leaflet.css';
9-
import styles from './InteractiveMap.module.css';
108

119
export default function InteractiveMap() {
1210
const darkMode = useSelector(state => state.theme.darkMode);

src/components/BMDashboard/InteractiveMap/InteractiveMap.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
:global(.dark-mode-map .marker-cluster-small) {
184184
background-color: rgba(110, 204, 57, 0.7) !important;
185185
}
186+
186187
:global(.dark-mode-map .marker-cluster-small div) {
187188
background-color: rgba(81, 163, 32, 0.8) !important;
188189
color: white !important;
@@ -191,6 +192,7 @@
191192
:global(.dark-mode-map .marker-cluster-medium) {
192193
background-color: rgba(240, 194, 12, 0.7) !important;
193194
}
195+
194196
:global(.dark-mode-map .marker-cluster-medium div) {
195197
background-color: rgba(200, 160, 0, 0.8) !important;
196198
color: white !important;
@@ -199,6 +201,7 @@
199201
:global(.dark-mode-map .marker-cluster-large) {
200202
background-color: rgba(241, 128, 23, 0.7) !important;
201203
}
204+
202205
:global(.dark-mode-map .marker-cluster-large div) {
203206
background-color: rgba(200, 100, 0, 0.8) !important;
204207
color: white !important;
@@ -208,6 +211,7 @@
208211
:global(.marker-cluster-small) {
209212
background-color: rgba(181, 226, 140, 0.8);
210213
}
214+
211215
:global(.marker-cluster-small div) {
212216
background-color: rgba(110, 204, 57, 0.8);
213217
color: white;
@@ -216,6 +220,7 @@
216220
:global(.marker-cluster-medium) {
217221
background-color: rgba(241, 211, 87, 0.8);
218222
}
223+
219224
:global(.marker-cluster-medium div) {
220225
background-color: rgba(240, 194, 12, 0.8);
221226
color: white;
@@ -224,6 +229,7 @@
224229
:global(.marker-cluster-large) {
225230
background-color: rgba(253, 156, 115, 0.8);
226231
}
232+
227233
:global(.marker-cluster-large div) {
228234
background-color: rgba(241, 128, 23, 0.8);
229235
color: white;

src/components/BMDashboard/InteractiveMap/MapSharedComponents.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* eslint-disable */
22
import { useEffect } from 'react';
3-
import { useMap } from 'react-leaflet';
4-
import { CircleMarker, Popup, Tooltip } from 'react-leaflet';
5-
import L from 'leaflet';
3+
import { useMap, CircleMarker, Popup, Tooltip } from 'react-leaflet';
64

75
/* -----------------------------------------------------
86
SHARED LEGEND COMPONENT

0 commit comments

Comments
 (0)