mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-31 14:31:18 -07:00
* Add send feedback btn to side panel * Update contact page copy * remove redundant constant
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
import * as React from 'react';
|
|
import {Grid} from '@trussworks/react-uswds';
|
|
import {useIntl, FormattedMessage} from 'gatsby-plugin-intl';
|
|
|
|
import J40MainGridContainer from '../components/J40MainGridContainer';
|
|
import Layout from '../components/layout';
|
|
import LinkTypeWrapper from '../components/LinkTypeWrapper';
|
|
|
|
import * as CONTACT_COPY from '../data/copy/contact';
|
|
interface IContactPageProps {
|
|
location: Location;
|
|
}
|
|
|
|
const ContactPage = ({location}: IContactPageProps) => {
|
|
const intl = useIntl();
|
|
|
|
return (
|
|
<Layout location={location} title={intl.formatMessage(CONTACT_COPY.PAGE_INTRO.PAGE_TILE)}>
|
|
|
|
<J40MainGridContainer>
|
|
|
|
<h1>{intl.formatMessage(CONTACT_COPY.PAGE_INTRO.PAGE_HEADING)}</h1>
|
|
|
|
<Grid row>
|
|
<Grid col>
|
|
<h2>
|
|
{intl.formatMessage(CONTACT_COPY.PAGE_INTRO.PAGE_SUB_HEADING)}
|
|
</h2>
|
|
<p>
|
|
<FormattedMessage
|
|
id={CONTACT_COPY.CONTACT_VIA_EMAIL.ID}
|
|
description={CONTACT_COPY.CONTACT_VIA_EMAIL.DESCRIPTION}
|
|
defaultMessage={CONTACT_COPY.CONTACT_VIA_EMAIL.DEFAULT_MESSAGE}
|
|
values={{
|
|
general_email_address:
|
|
<LinkTypeWrapper
|
|
linkText= {CONTACT_COPY.FEEDBACK_EMAIL}
|
|
internal= {false}
|
|
url= {`mailto:${CONTACT_COPY.FEEDBACK_EMAIL}`}
|
|
openUrlNewTab= {true}
|
|
/>,
|
|
}}/>
|
|
</p>
|
|
<h3>{CONTACT_COPY.CENSUS_TRACK_FEEDBACK.TITLE}</h3>
|
|
<p>{CONTACT_COPY.CENSUS_TRACK_FEEDBACK.PARAGRAPH1}</p>
|
|
<p>{CONTACT_COPY.CENSUS_TRACK_FEEDBACK.PARAGRAPH2}</p>
|
|
<p>{CONTACT_COPY.CENSUS_TRACK_FEEDBACK.PARAGRAPH3}</p>
|
|
</Grid>
|
|
</Grid>
|
|
</J40MainGridContainer>
|
|
</Layout>
|
|
);
|
|
};
|
|
|
|
export default ContactPage;
|