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

Staging to Develop #5598

Merged
merged 7 commits into from
Jun 24, 2020
6 changes: 5 additions & 1 deletion web-client/src/views/CaseDetail/AddressDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export const AddressDisplay = connect(
constants: state.constants,
contact: props.contact,
nameOverride: props.nameOverride || {},
showEmail: props.showEmail || false,
},
function AddressDisplay({ constants, contact, nameOverride }) {
function AddressDisplay({ constants, contact, nameOverride, showEmail }) {
return (
<>
<p className="margin-top-0 address-name">
Expand Down Expand Up @@ -39,6 +40,9 @@ export const AddressDisplay = connect(
{contact.phone && (
<span className="address-line margin-top-1">{contact.phone}</span>
)}
{contact.email && showEmail && (
<span className="address-line">{contact.email}</span>
)}
</p>
</>
);
Expand Down
1 change: 1 addition & 0 deletions web-client/src/views/CaseDetail/PetitionerInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const PetitionerInformation = connect(
formattedCaseDetail.showCaseTitleForPrimary &&
formattedCaseDetail.caseTitle
}
showEmail={true}
/>
</address>
{formattedCaseDetail.contactPrimary.serviceIndicator && (
Expand Down