mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-21 23:11:41 -07:00
Add hash to send feedback email (#1551)
- detected bug with zoom/lat/lng values and created ticket 1550 - get realtime has from mapRef - pass hash to AreaDetail as prop - update tests and snapshots
This commit is contained in:
parent
ce6f7974fb
commit
1ce124069d
5 changed files with 37 additions and 19 deletions
|
@ -21,6 +21,7 @@ import mailIcon from '/node_modules/uswds/dist/img/usa-icons/mail_outline.svg';
|
|||
|
||||
interface IAreaDetailProps {
|
||||
properties: constants.J40Properties,
|
||||
hash: string[],
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -40,7 +41,7 @@ export interface indicatorInfo {
|
|||
threshold?: number,
|
||||
}
|
||||
|
||||
const AreaDetail = ({properties}:IAreaDetailProps) => {
|
||||
const AreaDetail = ({properties, hash}:IAreaDetailProps) => {
|
||||
const intl = useIntl();
|
||||
|
||||
// console.log the properties of the census that is selected:
|
||||
|
@ -55,7 +56,10 @@ const AreaDetail = ({properties}:IAreaDetailProps) => {
|
|||
|
||||
const isCommunityFocus = score >= constants.SCORE_BOUNDARY_THRESHOLD;
|
||||
|
||||
const feedbackEmailSubject = `Census tract ID ${blockGroup}, ${countyName}, ${stateName}`;
|
||||
const feedbackEmailSubject = hash ? `
|
||||
Census tract ID ${blockGroup}, ${countyName}, ${stateName}, ( z/lat/lon: #${hash.join('/')} )
|
||||
` : `Census tract ID ${blockGroup}, ${countyName}, ${stateName}`;
|
||||
|
||||
const feedbackEmailBody = intl.formatMessage(EXPLORE_COPY.SEND_FEEDBACK.EMAIL_BODY);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue