Skip to content

Commit

Permalink
Remove domains/gdpr-consent-page that's not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardost committed Oct 21, 2024
1 parent 432f963 commit 480413d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import config from '@automattic/calypso-config';
import { memo } from 'react';
import { connect } from 'react-redux';
import { getSelectedDomain } from 'calypso/lib/domains';
Expand Down Expand Up @@ -26,16 +25,14 @@ const ContactsPrivacy = ( props: ContactsInfoProps ): null | JSX.Element => {
isPendingIcannVerification,
registeredViaTrustee,
registeredViaTrusteeUrl,
supportsGdprConsentManagement,
} = domain;

const canManageConsent =
config.isEnabled( 'domains/gdpr-consent-page' ) && domain.supportsGdprConsentManagement;

return (
<ContactsPrivacyCard
selectedDomainName={ props.selectedDomainName }
selectedSite={ props.selectedSite }
canManageConsent={ canManageConsent }
canManageConsent={ supportsGdprConsentManagement }
privateDomain={ privateDomain }
privacyAvailable={ privacyAvailable }
contactInfoDisclosed={ contactInfoDisclosed }
Expand Down
1 change: 0 additions & 1 deletion config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"devdocs": true,
"devdocs/color-scheme-picker": true,
"devdocs/redirect-loggedout-homepage": true,
"domains/gdpr-consent-page": true,
"domains/kracken-ui/exact-match-filter": true,
"domains/kracken-ui/max-characters-filter": false,
"domains/kracken-ui/pagination": true,
Expand Down
1 change: 0 additions & 1 deletion config/horizon.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"current-site/stale-cart-notice": false,
"design-picker/use-assembler-styles": true,
"devdocs": false,
"domains/gdpr-consent-page": true,
"domains/kracken-ui/exact-match-filter": true,
"domains/kracken-ui/pagination": true,
"external-media": true,
Expand Down
1 change: 0 additions & 1 deletion config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"current-site/notice": true,
"current-site/stale-cart-notice": false,
"desktop-promo": true,
"domains/gdpr-consent-page": true,
"domains/kracken-ui/exact-match-filter": true,
"domains/kracken-ui/pagination": true,
"external-media": true,
Expand Down
1 change: 0 additions & 1 deletion config/stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"desktop-promo": true,
"dev/preferences-helper": true,
"dev/store-sandbox-helper": true,
"domains/gdpr-consent-page": true,
"domains/kracken-ui/exact-match-filter": true,
"domains/kracken-ui/pagination": true,
"external-media": true,
Expand Down
1 change: 0 additions & 1 deletion config/wpcalypso.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"devdocs": true,
"devdocs/color-scheme-picker": true,
"devdocs/redirect-loggedout-homepage": true,
"domains/gdpr-consent-page": true,
"domains/kracken-ui/exact-match-filter": true,
"domains/kracken-ui/pagination": true,
"email-accounts/enabled": true,
Expand Down

0 comments on commit 480413d

Please sign in to comment.