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:
@@ -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
|
||||||
|
|||||||
@@ -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'];
|
||||||
|
|||||||
Reference in New Issue
Block a user