fix: expand map filters by default to show hotspot toggle

Make the filters panel expanded by default so users can immediately
see and access the hotspot visualization toggle without needing to
click to expand the panel first.
This commit is contained in:
2025-11-16 19:03:28 +00:00
parent 40a96142ba
commit 9aa6507e7e
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@
- Configure chart responsiveness for mobile - Configure chart responsiveness for mobile
- _Requirements: 5.2, 5.3, 5.4_ - _Requirements: 5.2, 5.3, 5.4_
- [-] 12. Create hotspot visualization - [x] 12. Create hotspot visualization
- Fetch and display hotspot data on map - Fetch and display hotspot data on map
- Implement color-coded severity indicators - Implement color-coded severity indicators
- Show hotspot boundaries and statistics - Show hotspot boundaries and statistics

View File

@@ -24,7 +24,7 @@ export function MapFilters({
showHotspots = false, showHotspots = false,
isLoadingHotspots = false, isLoadingHotspots = false,
}: MapFiltersProps) { }: MapFiltersProps) {
const [isExpanded, setIsExpanded] = useState(false); const [isExpanded, setIsExpanded] = useState(true);
const litterTypes: LitterType[] = ['plastic', 'metal', 'glass', 'organic', 'hazardous', 'other']; const litterTypes: LitterType[] = ['plastic', 'metal', 'glass', 'organic', 'hazardous', 'other'];
const quantities: QuantityLevel[] = ['minimal', 'moderate', 'significant', 'severe']; const quantities: QuantityLevel[] = ['minimal', 'moderate', 'significant', 'severe'];