diff --git a/ui/components/graphs/threat-map.tsx b/ui/components/graphs/threat-map.tsx index 5ab2a62f66..6ce2036e47 100644 --- a/ui/components/graphs/threat-map.tsx +++ b/ui/components/graphs/threat-map.tsx @@ -7,7 +7,7 @@ import type { GeoJsonProperties, Geometry, } from "geojson"; -import { AlertTriangle, Info, MapPin } from "lucide-react"; +import { AlertTriangle, ChevronDown, Info, MapPin } from "lucide-react"; import { useEffect, useRef, useState } from "react"; import { feature } from "topojson-client"; import type { @@ -16,14 +16,6 @@ import type { Topology, } from "topojson-specification"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/shared/shadcn"; - import { HorizontalBarChart } from "./horizontal-bar-chart"; import { BarDataPoint } from "./types"; @@ -413,26 +405,30 @@ export function ThreatMap({ > Threat Map - setSelectedRegion(e.target.value)} + className="appearance-none rounded-lg border px-4 py-2 pr-10 text-sm focus:outline-none" style={{ borderColor: CHART_COLORS.tooltipBorder, backgroundColor: CHART_COLORS.tooltipBackground, color: CHART_COLORS.textPrimary, }} > - - - - All Regions + {data.regions.map((region) => ( - + + ))} - - + + +