Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update survey links on behalf of lscharen #2255

Merged
merged 5 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,084 changes: 707 additions & 377 deletions client/src/components/AreaDetail/AreaDetail.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/components/DatasetContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {hyphenizeString} from '../../../cypress/integration/common/helpers';

import * as styles from './dsContainer.module.scss';
import * as METHODOLOGY_COPY from '../../data/copy/methodology';
import {PAGES_ENDPOINTS} from '../../data/constants';
import {PAGES_ENDPOINTS, DATA_SURVEY_LINKS} from '../../data/constants';
import DatasetsButton from '../DatasetsButton';


Expand All @@ -35,7 +35,7 @@ const DatasetContainer = () => {
<Grid desktop={{col: 1}}>
</Grid>
<Grid desktop={{col: 4}}>
<DatasetsButton href= {intl.locale === 'es' ? 'https://www.surveymonkey.com/r/ZPKY8G9' : 'https://www.surveymonkey.com/r/6G9TQJ8'} />
<DatasetsButton href= {intl.locale === 'es' ? DATA_SURVEY_LINKS.ES : DATA_SURVEY_LINKS.EN} />
</Grid>
</Grid>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<a
href="https://www.surveymonkey.com/r/6G9TQJ8"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_51EPev2O6jHiaJ8"
rel="noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>
Expand All @@ -25,7 +25,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.surveymonkey.com/r/6G9TQJ8"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_51EPev2O6jHiaJ8"
rel="noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ exports[`J40Footer renders correctly 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>
Expand Down
5 changes: 3 additions & 2 deletions client/src/components/SurveyButton/SurveyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ import {Button} from '@trussworks/react-uswds';
import * as styles from './SurveyButton.module.scss';
import * as CONTACT_COPY from '../../data/copy/contact';
import J40MainGridContainer from '../J40MainGridContainer';
import {SITE_SATISFACTION_SURVEY_LINKS} from '../../data/constants';

// @ts-ignore
import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';

const SurveyButton = () => {
const intl = useIntl();
const href = intl.locale === 'es' ?
`https://www.surveymonkey.com/r/ZH36CYV` :
`https://www.surveymonkey.com/r/P3LWTSB`;
SITE_SATISFACTION_SURVEY_LINKS.ES :
SITE_SATISFACTION_SURVEY_LINKS.EN;

return (
<J40MainGridContainer className={styles.surveyButtonContainer}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`rendering of the SurveyButton checks if component renders 1`] = `
data-testid="gridContainer"
>
<a
href="https://www.surveymonkey.com/r/P3LWTSB"
href="https://eop.gov1.qualtrics.com/jfe/form/SV_eA0ZLaxP8gxLfoO"
rel="noreferrer"
target="_blank"
>
Expand Down
Loading
Loading