Skip to content

Commit

Permalink
fix: show ICRC presence only for partner countries
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Nov 13, 2024
1 parent f82f846 commit ade84aa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 37 deletions.
8 changes: 8 additions & 0 deletions .changeset/slow-bobcats-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"go-web-app": patch
---

Display ICRC Presence

- Display ICRC presence across partner countries
- Highlight key operational countries
Original file line number Diff line number Diff line change
Expand Up @@ -169,49 +169,53 @@ function Presence() {
)}
</div>
</Container>
<Container
className={styles.presenceCard}
heading={strings.countryICRCPresenceTitle}
footerActions={isDefined(countryResponse?.icrc_presence?.url) && (
<TextOutput
label={strings.source}
value={(
{countryResponse?.icrc_presence?.icrc_presence && (
<Container
className={styles.presenceCard}
heading={strings.countryICRCPresenceTitle}
footerActions={isDefined(countryResponse.icrc_presence.url) && (
<TextOutput
label={strings.source}
value={(
<Link
variant="tertiary"
href={countryResponse.icrc_presence.url}
external
withUnderline
>
{strings.icrc}
</Link>
)}
/>
)}
withHeaderBorder
withInternalPadding
>
{
resolveToString(
strings.countryICRCConfirmedPartner,
{ year },
)
}
{countryResponse.icrc_presence.key_operation && (
<div className={styles.icrcPresenceItem}>
<Link
variant="tertiary"
key={countryResponse.icrc_presence.id}
href={countryResponse.icrc_presence.url}
external
variant="tertiary"
withUnderline
>
{strings.icrc}
{strings.countryICRCKeyOperations}
</Link>
)}
/>
)}
withHeaderBorder
withInternalPadding
>
{resolveToString(
strings.countryICRCConfirmedPartner,
{ year },
)}
{countryResponse?.icrc_presence?.key_operation && (
<div className={styles.icrcPresenceItem}>
<Link
key={countryResponse?.icrc_presence.id}
href={countryResponse?.icrc_presence.url}
external
variant="tertiary"
withUnderline
>
{strings.countryICRCKeyOperations}
</Link>
{resolveToString(
strings.countryICRCWithin,
{ name: countryResponse?.name ?? '--' },
)}
</div>
)}
</Container>
{resolveToString(
strings.countryICRCWithin,
{ name: countryResponse.name ?? '--' },
)}
</div>
)}
</Container>
)}
</Container>
);
}
Expand Down

0 comments on commit ade84aa

Please sign in to comment.