Skip to content

Commit

Permalink
update about page links
Browse files Browse the repository at this point in the history
  • Loading branch information
vim-usds committed Aug 5, 2023
1 parent 6c93ab3 commit cd1cc8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/src/data/copy/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export const CEJST_MEMO = `https://www.whitehouse.gov/wp-content/uploads/2023/01
export const CEJST_MEMO_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/M-23-09_Signed_CEQ_CPO_es.pdf`;

export const USE_MAP_TUTORIAL_LINK = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Tutorial.pdf`;
export const USE_MAP_TUTORIAL_LINK_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Tutorial-es.pdf`;
export const USE_DATA_TUTORIAL_LINK = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.pdf`;
export const USE_DATA_TUTORIAL_LINK_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial-es.pdf`;

export const GITHUB_LINK = 'https://github.com/usds/justice40-tool';
export const GITHUB_LINK_ES = 'https://github.com/usds/justice40-tool/blob/main/README-es.md';
Expand Down
7 changes: 4 additions & 3 deletions client/src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import commentIcon from // @ts-ignore

import githubIcon from // @ts-ignore
'/node_modules/uswds/dist/img/usa-icons/github.svg';
import {USE_DATA_TUTORIAL_LINK, USE_MAP_TUTORIAL_LINK} from '../data/copy/about';
import {USE_DATA_TUTORIAL_LINK, USE_MAP_TUTORIAL_LINK,
USE_DATA_TUTORIAL_LINK_ES, USE_MAP_TUTORIAL_LINK_ES} from '../data/copy/about';

interface IAboutPageProps {
location: Location;
Expand Down Expand Up @@ -118,7 +119,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
imgSrc={accountBalanceIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_MAP_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_MAP_TUTORIAL}
url={USE_MAP_TUTORIAL_LINK}
url={intl.locale === `es` ? USE_MAP_TUTORIAL_LINK_ES : USE_MAP_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>
Expand All @@ -131,7 +132,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
imgSrc={fileDownloadIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_DATA_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_DATA_TUTORIAL}
url={USE_DATA_TUTORIAL_LINK}
url={intl.locale === `es` ? USE_DATA_TUTORIAL_LINK_ES : USE_DATA_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>
Expand Down

0 comments on commit cd1cc8a

Please sign in to comment.