Skip to content

Commit

Permalink
Restore the removed contact page survey link
Browse files Browse the repository at this point in the history
  • Loading branch information
lscharen committed Jan 30, 2024
1 parent b116c90 commit bb826ce
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
3 changes: 2 additions & 1 deletion client/src/components/AreaDetail/AreaDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,8 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
{/* Send Feedback button */}
<a
className={styles.sendFeedbackLink}
href={intl.locale === `es` ? `${constants.CENSUS_TRACT_SURVEY_LINKS.ES}?tractid=${blockGroup}` : `${constants.CENSUS_TRACT_SURVEY_LINKS.EN}?tractid=${blockGroup}`}
href={intl.locale === `es` ? `${constants.CENSUS_TRACT_SURVEY_LINKS.ES}?tractid=${blockGroup}` :
`${constants.CENSUS_TRACT_SURVEY_LINKS.EN}?tractid=${blockGroup}`}
target={"_blank"}
rel="noreferrer"
>
Expand Down
2 changes: 1 addition & 1 deletion client/src/data/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,4 @@ export const CONTACT_SURVEY_LINKS = {
export const CENSUS_TRACT_SURVEY_LINKS = {
EN: 'https://eop.gov1.qualtrics.com/jfe/form/SV_8J5wGa8Ya4dMP9c',
ES: 'https://eop.gov1.qualtrics.com/jfe/form/SV_eJXos5X4yekq6cC',
};
};
22 changes: 11 additions & 11 deletions client/src/data/copy/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ export const CENSUS_TRACT_FEEDBACK = {
// `}
// description={'Navigate to the contact page, this is the census tract feedback section'}
// />,
// PARAGRAPH3: <FormattedMessage
// id={'contact.page.census.tract.feedback.para3'}
// defaultMessage={`
// The best way to contact the Council on Environmental Quality (CEQ) is by filling out <link1>this form</link1>.
// `}
// description={'Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support'}
// values={{
// link1: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.EN, false, true),
// link1es: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.ES, false, true),
// }}
// />,
PARAGRAPH3: <FormattedMessage
id={'contact.page.census.tract.feedback.para3'}
defaultMessage={`
The best way to contact the Council on Environmental Quality (CEQ) is by filling out <link1>this form</link1>.
`}
description={'Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support'}
values={{
link1: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.EN, false, true),
link1es: COMMON_COPY.linkFn(CONTACT_SURVEY_LINKS.ES, false, true),
}}
/>,
};


4 changes: 4 additions & 0 deletions client/src/intl/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@
"defaultMessage": "https://static-data-screeningtool.geoplatform.gov/data-pipeline/data/score/downloadable/cejst_technical_support_document.pdf",
"description": "Navigate to the Alerts on any page. This will be the link to the techinical support document."
},
"contact.page.census.tract.feedback.para3": {
"defaultMessage": "The best way to contact the Council on Environmental Quality (CEQ) is by filling out <link1>this form</link1>.",
"description": "Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support"
},
"contact.page.fab.survey.text": {
"defaultMessage": "Help improve the tool",
"description": "Navigate to the contact page, this is the text for floating action button"
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const ContactPage = ({location}: IContactPageProps) => {
<h2>
{intl.formatMessage(CONTACT_COPY.PAGE_INTRO.PAGE_SUB_HEADING)}
</h2>
<p>{CONTACT_COPY.CENSUS_TRACT_FEEDBACK.PARAGRAPH3}</p>
<p>
<FormattedMessage
id={'contact.page.general'}
Expand Down

0 comments on commit bb826ce

Please sign in to comment.