From ade84aacd40b55aca026acba63fde867833a4824 Mon Sep 17 00:00:00 2001 From: Sameer Rai Date: Wed, 13 Nov 2024 17:50:13 +0545 Subject: [PATCH] fix: show ICRC presence only for partner countries --- .changeset/slow-bobcats-joke.md | 8 ++ .../Presence/index.tsx | 78 ++++++++++--------- 2 files changed, 49 insertions(+), 37 deletions(-) create mode 100644 .changeset/slow-bobcats-joke.md diff --git a/.changeset/slow-bobcats-joke.md b/.changeset/slow-bobcats-joke.md new file mode 100644 index 000000000..d1cd423ea --- /dev/null +++ b/.changeset/slow-bobcats-joke.md @@ -0,0 +1,8 @@ +--- +"go-web-app": patch +--- + +Display ICRC Presence + +- Display ICRC presence across partner countries +- Highlight key operational countries diff --git a/app/src/views/CountryNsOverviewSupportingPartners/Presence/index.tsx b/app/src/views/CountryNsOverviewSupportingPartners/Presence/index.tsx index 20452cde1..afc4a1ac2 100644 --- a/app/src/views/CountryNsOverviewSupportingPartners/Presence/index.tsx +++ b/app/src/views/CountryNsOverviewSupportingPartners/Presence/index.tsx @@ -169,49 +169,53 @@ function Presence() { )} - + {strings.icrc} + + )} + /> + )} + withHeaderBorder + withInternalPadding + > + { + resolveToString( + strings.countryICRCConfirmedPartner, + { year }, + ) + } + {countryResponse.icrc_presence.key_operation && ( +
- {strings.icrc} + {strings.countryICRCKeyOperations} - )} - /> - )} - withHeaderBorder - withInternalPadding - > - {resolveToString( - strings.countryICRCConfirmedPartner, - { year }, - )} - {countryResponse?.icrc_presence?.key_operation && ( -
- - {strings.countryICRCKeyOperations} - - {resolveToString( - strings.countryICRCWithin, - { name: countryResponse?.name ?? '--' }, - )} -
- )} - + {resolveToString( + strings.countryICRCWithin, + { name: countryResponse.name ?? '--' }, + )} +
+ )} +
+ )} ); }