From 54f41e36339a4d4a312e43d6f67a79672157dbda Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 9 Jan 2025 18:12:56 -0800 Subject: [PATCH] Activate Serbia --- components/region-maps/RS.tsx | 172 ++++++++++++++++++++++++++++++++++ data/flat-regions.json | 80 ++++++++++++++++ data/regions.json | 25 +++++ data/sync-regions.json | 3 +- pages/index.tsx | 3 + 5 files changed, 282 insertions(+), 1 deletion(-) create mode 100644 components/region-maps/RS.tsx diff --git a/components/region-maps/RS.tsx b/components/region-maps/RS.tsx new file mode 100644 index 0000000..eacc73c --- /dev/null +++ b/components/region-maps/RS.tsx @@ -0,0 +1,172 @@ +import Link from "next/link"; +import MapTooltip from "components/MapTooltip"; +import useHoverMap from "hooks/useHoverMap"; + +export default function RSMap() { + const { linkProps, pathProps, tooltipProps, svgRef } = useHoverMap(); + + return ( + <> + + + + + Macva + + + + + Šumadija + + + + + Pomoravlje + + + + + Bor + + + + + Zajecar + + + + + Moravica + + + + + Raška + + + + + Rasina + + + + + Nišava + + + + + Toplica + + + + + Pirot + + + + + Jablanica + + + + + Pcinja + + + + + Branicevo + + + + + Podunavlje + + + + + Vojvodina + + + + + Beograd + + + + + Kolubara + + + + + Zlatibor + + + + ); +} diff --git a/data/flat-regions.json b/data/flat-regions.json index 7696c1b..97aa722 100644 --- a/data/flat-regions.json +++ b/data/flat-regions.json @@ -14175,6 +14175,86 @@ "code": "TR-73", "name": "Şırnak, Türkiye" }, + { + "code": "RS", + "name": "Serbia" + }, + { + "code": "RS-00", + "name": "Beograd, Serbia" + }, + { + "code": "RS-14", + "name": "Bor, Serbia" + }, + { + "code": "RS-11", + "name": "Branicevo, Serbia" + }, + { + "code": "RS-23", + "name": "Jablanica, Serbia" + }, + { + "code": "RS-09", + "name": "Kolubara, Serbia" + }, + { + "code": "RS-08", + "name": "Macva, Serbia" + }, + { + "code": "RS-17", + "name": "Moravica, Serbia" + }, + { + "code": "RS-20", + "name": "Nišava, Serbia" + }, + { + "code": "RS-24", + "name": "Pcinja, Serbia" + }, + { + "code": "RS-22", + "name": "Pirot, Serbia" + }, + { + "code": "RS-10", + "name": "Podunavlje, Serbia" + }, + { + "code": "RS-13", + "name": "Pomoravlje, Serbia" + }, + { + "code": "RS-19", + "name": "Rasina, Serbia" + }, + { + "code": "RS-18", + "name": "Raška, Serbia" + }, + { + "code": "RS-21", + "name": "Toplica, Serbia" + }, + { + "code": "RS-VO", + "name": "Vojvodina, Serbia" + }, + { + "code": "RS-15", + "name": "Zajecar, Serbia" + }, + { + "code": "RS-16", + "name": "Zlatibor, Serbia" + }, + { + "code": "RS-12", + "name": "Šumadija, Serbia" + }, { "code": "ZA", "name": "South Africa" diff --git a/data/regions.json b/data/regions.json index 990840e..42ede20 100644 --- a/data/regions.json +++ b/data/regions.json @@ -3882,6 +3882,31 @@ { "code": "TR-73", "name": "Şırnak" } ] }, + { + "code": "RS", + "name": "Serbia", + "subregions": [ + { "code": "RS-00", "name": "Beograd" }, + { "code": "RS-14", "name": "Bor" }, + { "code": "RS-11", "name": "Branicevo" }, + { "code": "RS-23", "name": "Jablanica" }, + { "code": "RS-09", "name": "Kolubara" }, + { "code": "RS-08", "name": "Macva" }, + { "code": "RS-17", "name": "Moravica" }, + { "code": "RS-20", "name": "Nišava" }, + { "code": "RS-24", "name": "Pcinja" }, + { "code": "RS-22", "name": "Pirot" }, + { "code": "RS-10", "name": "Podunavlje" }, + { "code": "RS-13", "name": "Pomoravlje" }, + { "code": "RS-19", "name": "Rasina" }, + { "code": "RS-18", "name": "Raška" }, + { "code": "RS-21", "name": "Toplica" }, + { "code": "RS-VO", "name": "Vojvodina" }, + { "code": "RS-15", "name": "Zajecar" }, + { "code": "RS-16", "name": "Zlatibor" }, + { "code": "RS-12", "name": "Šumadija" } + ] + }, { "code": "ZA", "name": "South Africa", diff --git a/data/sync-regions.json b/data/sync-regions.json index 9a85dd1..bced9e9 100644 --- a/data/sync-regions.json +++ b/data/sync-regions.json @@ -65,5 +65,6 @@ "AQ", "TR", "MX-COL", - "ZA" + "ZA", + "RS" ] diff --git a/pages/index.tsx b/pages/index.tsx index a90cba4..b4900c1 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -69,6 +69,9 @@ export default function Home({ featured, northAmericaRegions }: Props) { Tajikistan + + Serbia + Türkiye