Skip to content

Commit

Permalink
updated political view config to support new country codes, desctipti…
Browse files Browse the repository at this point in the history
…on to be updated
  • Loading branch information
its-aazizi committed Nov 20, 2024
1 parent f310655 commit ccd13a6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
15 changes: 14 additions & 1 deletion extra/translation-script-content/update-en.json
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
{}
{
"georgia_political_view_desc": {
"text": ""
},
"cyprus_political_view_desc": {
"text": ""
},
"palestine_political_view_desc": {
"text": ""
},
"greece_political_view_desc": {
"text": ""
}
}
8 changes: 3 additions & 5 deletions src/atomicui/molecules/MapButtons/MapButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const MapButtons: FC<MapButtonsProps> = ({
</Flex>
))}
</Flex>
<Flex gap={0} padding="0 1rem">
<Flex gap={0} padding="1rem">
<Flex
gap={0}
borderRadius="0.61rem"
Expand Down Expand Up @@ -289,10 +289,8 @@ const MapButtons: FC<MapButtonsProps> = ({
))}
</Flex>
</Flex>
<Flex gap={0} padding="2rem 1rem 0rem 1rem" direction="column">
<Flex gap={0} padding="1rem 0rem">
<PoliticalViewDropdown bordered disabled={mapStyle === MapStyleEnum.SATELLITE} />
</Flex>
<Flex gap={0} padding="1rem">
<PoliticalViewDropdown bordered disabled={mapStyle === MapStyleEnum.SATELLITE} />
</Flex>
</Flex>
</Flex>
Expand Down
6 changes: 5 additions & 1 deletion src/core/constants/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ccd13a6

Please sign in to comment.