-
Contact consent
- {isNil(contact.consentData) ? (
-
- There is no consent data available for this contact
-
- ) : (
-
- {`This contact has ${consentGiven ? 'given' : 'not given'} consent to be contacted.`}
-
- )}
-
- )
-}
-
-export default ConsentDetails
diff --git a/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx b/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
index 399cac32f9b..89ece6364d3 100644
--- a/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
+++ b/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
@@ -7,6 +7,8 @@ import { ContactResource } from '../../../components/Resource'
import { SummaryTable, ErrorSummary } from '../../../components'
import urls from '../../../../lib/urls'
import {
+ EMAIL_CONSENT_NO,
+ EMAIL_CONSENT_YES,
LEFT_COMPANY_OPTION,
NO_CONTACT_OPTION,
ROLE_CHANGE_OPTION,
@@ -14,7 +16,6 @@ import {
import { ID, TASK_ARCHIVE_CONTACT } from './state'
import ArchiveForm from '../../../components/ArchiveForm'
import ContactLayout from '../../../components/Layout/ContactLayout'
-import ConsentDetails from './ConsentDetails'
const getAddress = (contact, companyAddress) => {
const address = contact.addressSameAsCompany
@@ -81,6 +82,14 @@ const ContactDetails = ({ contactId, companyAddress, permissions }) => (
children={contact.notes}
/>
) : null}
+