mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 18:14:19 -08:00
Spanish site improvements
This commit is contained in:
parent
5b4f4af2a7
commit
b8c7faab36
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ import J40MainGridContainer from '../J40MainGridContainer';
|
|||
import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';
|
||||
|
||||
export const onClickHandler = () => {
|
||||
Object.assign(document.createElement('a'), {target: '_blank', href: 'https://www.surveymonkey.com/r/cejst-survey'}).click();
|
||||
const intl = useIntl();
|
||||
|
||||
const href = intl.locale === 'es' ? 'https://www.surveymonkey.com/r/cejst-survey-es' : 'https://www.surveymonkey.com/r/cejst-survey';
|
||||
|
||||
Object.assign(document.createElement('a'), {target: '_blank', href: href}).click();
|
||||
};
|
||||
|
||||
const SurveyButton = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue