From ccd13a66ea6e60cfc8d1b50c045e3c2e438edae3 Mon Sep 17 00:00:00 2001 From: Ahmad Azizi <91204996+its-aazizi@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:58:58 +0500 Subject: [PATCH] updated political view config to support new country codes, desctiption to be updated --- extra/translation-script-content/update-en.json | 15 ++++++++++++++- src/atomicui/molecules/MapButtons/MapButtons.tsx | 8 +++----- src/core/constants/appConfig.ts | 6 +++++- src/setupTests.ts | 6 +++++- 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/extra/translation-script-content/update-en.json b/extra/translation-script-content/update-en.json index 0967ef42..074dd703 100644 --- a/extra/translation-script-content/update-en.json +++ b/extra/translation-script-content/update-en.json @@ -1 +1,14 @@ -{} +{ + "georgia_political_view_desc": { + "text": "" + }, + "cyprus_political_view_desc": { + "text": "" + }, + "palestine_political_view_desc": { + "text": "" + }, + "greece_political_view_desc": { + "text": "" + } +} diff --git a/src/atomicui/molecules/MapButtons/MapButtons.tsx b/src/atomicui/molecules/MapButtons/MapButtons.tsx index a52694fe..c3d6cf65 100644 --- a/src/atomicui/molecules/MapButtons/MapButtons.tsx +++ b/src/atomicui/molecules/MapButtons/MapButtons.tsx @@ -230,7 +230,7 @@ const MapButtons: FC = ({ ))} - + = ({ ))} - - - - + + diff --git a/src/core/constants/appConfig.ts b/src/core/constants/appConfig.ts index b8481ccd..e1d72eb1 100644 --- a/src/core/constants/appConfig.ts +++ b/src/core/constants/appConfig.ts @@ -134,7 +134,11 @@ const appConfig = { { alpha2: "SY", alpha3: "SYR", desc: "syria_political_view_desc.text" }, { alpha2: "TR", alpha3: "TUR", desc: "turkey_political_view_desc.text" }, { alpha2: "TZ", alpha3: "TZA", desc: "tanzania_political_view_desc.text" }, - { alpha2: "UY", alpha3: "URY", desc: "uruguay_political_view_desc.text" } + { alpha2: "UY", alpha3: "URY", desc: "uruguay_political_view_desc.text" }, + { alpha2: "GE", alpha3: "GEO", desc: "georgia_political_view_desc.text" }, + { alpha2: "CY", alpha3: "CYP", desc: "cyprus_political_view_desc.text" }, + { alpha2: "PS", alpha3: "PSE", desc: "palestine_political_view_desc.text" }, + { alpha2: "GR", alpha3: "GRC", desc: "greece_political_view_desc.text" } ], GEOFENCE_COLLECTION: "location.aws.com.demo.geofences.GeofenceCollection", DEVICE_ID_WEB: "web_browser_device", diff --git a/src/setupTests.ts b/src/setupTests.ts index 917e01fa..8d76de76 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -122,7 +122,11 @@ jest.mock("@demo/core/constants/appConfig", () => ({ { alpha2: "SY", alpha3: "SYR", desc: "syria_political_view_desc.text" }, { alpha2: "TR", alpha3: "TUR", desc: "turkey_political_view_desc.text" }, { alpha2: "TZ", alpha3: "TZA", desc: "tanzania_political_view_desc.text" }, - { alpha2: "UY", alpha3: "URY", desc: "uruguay_political_view_desc.text" } + { alpha2: "UY", alpha3: "URY", desc: "uruguay_political_view_desc.text" }, + { alpha2: "GE", alpha3: "GEO", desc: "georgia_political_view_desc.text" }, + { alpha2: "CY", alpha3: "CYP", desc: "cyprus_political_view_desc.text" }, + { alpha2: "PS", alpha3: "PSE", desc: "palestine_political_view_desc.text" }, + { alpha2: "GR", alpha3: "GRC", desc: "greece_political_view_desc.text" } ], GEOFENCE_COLLECTION: "location.aws.com.demo.geofences.GeofenceCollection", DEVICE_ID_WEB: "web_browser_device",