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 9267d83
Showing 1 changed file with 41 additions and 37 deletions.
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 9267d83

Please sign in to comment.