Skip to content

Commit

Permalink
Add desclaimer and update link of legal status
Browse files Browse the repository at this point in the history
  • Loading branch information
roshni73 committed Oct 1, 2024
1 parent 6cd1b37 commit bb9ab55
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"fdrs": "FDRS",
"icrc": "ICRC",
"countryIFRCDelegationType": "Office Type",
"countryIFRCLocation": "Location"
"countryIFRCLocation": "Location",
"disclaimer":"This link will only be accessible to IFRC staff."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useCallback } from 'react';
import { useOutletContext } from 'react-router-dom';
import {
Container,
InfoPopup,
RawList,
TextOutput,
} from '@ifrc-go/ui';
Expand All @@ -23,7 +24,7 @@ import styles from './styles.module.css';

const year = new Date().getFullYear();

const legalStatusLink = 'https://fednet.ifrc.org/en/support/legal/legal/legal-status/';
const legalStatusLink = 'https://ifrcorg.sharepoint.com/sites/OurIFRCLegal/SitePages/Legal-Resources.aspx';

interface DelegationInformationProps {
name: string | null | undefined;
Expand Down Expand Up @@ -142,14 +143,20 @@ function Presence() {
/>
</div>
<div className={styles.ifrcPresenceItem}>
<Link
href={legalStatusLink}
external
variant="tertiary"
withUnderline
>
{strings.countryIFRCLegalStatus}
</Link>
<div className={styles.ifrcDisclaimer}>
<Link
href={legalStatusLink}
external
variant="tertiary"
withUnderline
>
{strings.countryIFRCLegalStatus}
</Link>
<InfoPopup
description={strings.disclaimer}
/>
</div>

{isDefined(countryResponse?.disaster_law_url) && (
<Link
href={countryResponse.disaster_law_url}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@
gap: var(--go-ui-spacing-xs);
}
}
.ifrc-disclaimer {
display: flex;
gap: var(--go-ui-spacing-xs);
}
}

0 comments on commit bb9ab55

Please sign in to comment.