diff --git a/client/src/components/Indicator/Indicator.test.tsx b/client/src/components/Indicator/Indicator.test.tsx index ff886e24..1561e039 100644 --- a/client/src/components/Indicator/Indicator.test.tsx +++ b/client/src/components/Indicator/Indicator.test.tsx @@ -93,7 +93,6 @@ describe('test rendering of Indicator value sub-text', () => { , ); expect(asFragment()).toMatchSnapshot(); - console.log(asFragment()); }); it('renders the "below 90 percentile"', () => { const {asFragment} = render( diff --git a/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap b/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap index 4388cad5..5b534457 100644 --- a/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap +++ b/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the J40Header checks if component renders 1`] = `
- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
diff --git a/client/src/components/LinkTypeWrapper/LinkTypeWrapper.tsx b/client/src/components/LinkTypeWrapper/LinkTypeWrapper.tsx index 83e2b0bc..68d46736 100644 --- a/client/src/components/LinkTypeWrapper/LinkTypeWrapper.tsx +++ b/client/src/components/LinkTypeWrapper/LinkTypeWrapper.tsx @@ -1,11 +1,13 @@ import React from 'react'; -import {Link} from 'gatsby-plugin-intl'; +import {Link, useIntl} from 'gatsby-plugin-intl'; import {Link as TrussLink} from '@trussworks/react-uswds'; +import {IDefineMessage} from '../../data/copy/common'; + interface ILinkTypeWrapper { linkText?: string; internal?: boolean; - url?: string; + url: string | IDefineMessage; openUrlNewTab?: boolean; className?: string; dataCy?: string; @@ -29,9 +31,16 @@ interface ILinkTypeWrapper { * @returns */ const LinkTypeWrapper = (props:ILinkTypeWrapper) => { + const intl = useIntl(); + let {url} = props; + + if (url && typeof url !== `string`) { + url = intl.formatMessage(url); + } + if (props.internal) { return ( - {props.linkText} @@ -42,7 +51,7 @@ const LinkTypeWrapper = (props:ILinkTypeWrapper) => {- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
diff --git a/client/src/pages/tests/__snapshots__/contact.test.tsx.snap b/client/src/pages/tests/__snapshots__/contact.test.tsx.snap index 777c5315..43349f96 100644 --- a/client/src/pages/tests/__snapshots__/contact.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/contact.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
@@ -512,7 +522,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022. diff --git a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap index 27652043..41a062d2 100644 --- a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
diff --git a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap index e51e04e2..e4e64993 100644 --- a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap index 6c77334e..ae3d2f28 100644 --- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
diff --git a/client/src/pages/tests/__snapshots__/publicEng.test.tsx.snap b/client/src/pages/tests/__snapshots__/publicEng.test.tsx.snap index 940bfb90..00546c21 100644 --- a/client/src/pages/tests/__snapshots__/publicEng.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/publicEng.test.tsx.snap @@ -320,7 +320,17 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.
@@ -437,173 +447,16 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis >- - The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital - Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic - Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to - use the current version of the tool. The presenters at these webinars will be available to - provide technical support and address issues related to accessing and using the tool. - -
-- - Event info - - : March 9th (4:00 - 5:00 PM EST) -
-- + CEJST listening session #4 -
- - -- - The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital - Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic - Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to - use the current version of the tool. The presenters at these webinars will be available to - provide technical support and address issues related to accessing and using the tool. - -
-- - Event info - - : March 10th (4:00 - 5:00 PM EST) -
-- - - -
-- - The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital - Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic - Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to - use the current version of the tool. The presenters at these webinars will be available to - provide technical support and address issues related to accessing and using the tool. - -
-- - Event info - - : March 16th (4:00 - 5:00 PM EST) -
-- - - -
-- - The White House Environmental Justice Advisory Council is also soliciting feedback on the beta version of the Climate and Economic Justice Screening Tool at its public meeting. The link above has additional details. - -
-- - Event info - - : March 31th (3:00 - 7:30 PM EST) -
-
-
@@ -815,25 +620,13 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- CEQ is hosting public listening sessions to seek input and feedback on the beta version of the
- tool, including on the datasets it includes and the methodology it uses. This feedback is critical
- to the development and enhancement of the tool. This feedback will help CEQ update and refine the
- tool to ensure that it reflects the environmental, climate and other challenges that communities
- are experiencing.
+ The White House Environmental Justice Advisory Council is also soliciting feedback on the beta version of the Climate and Economic Justice Screening Tool at its public meeting. The link above has additional details.
Event info
- : May 10th (4:00 PM EST)
+ : March 31th (3:00 - 7:30 PM EST)
-
- CEJST listening session #3
-
+ CEJST Public WHEJAC meeting day two
Event info - : May 19th (4:00 PM EST) + : March 22nd (4:00 - 5:00 PM EST)
++ + The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital + Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic + Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to + use the current version of the tool. The presenters at these webinars will be available to + provide technical support and address issues related to accessing and using the tool. + +
++ + Event info + + : March 16th (4:00 - 5:00 PM EST) +
+ ++ + The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital + Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic + Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to + use the current version of the tool. The presenters at these webinars will be available to + provide technical support and address issues related to accessing and using the tool. + +
++ + Event info + + : March 10th (4:00 - 5:00 PM EST) +
+ ++ + The White House Council on Environmental Quality (CEQ), in partnership with the U.S. Digital + Service, is hosting a series of 'Training Webinars' for users of the Climate and Economic + Justice Screening Tool. These webinars are an opportunity for members of the public to learn how to + use the current version of the tool. The presenters at these webinars will be available to + provide technical support and address issues related to accessing and using the tool. + +
++ + Event info + + : March 9th (4:00 - 5:00 PM EST) +
+- Download new technical support and other documentation and + Download new + + technical support + + and other documentation and sending feedback - has been extended to May 25, 2022. + via the Request for Information has been extended to May 25, 2022.