@@ -21,7 +21,6 @@ import styles from './notice-choice.scss';
2121import { unsafeHTML } from 'lit/directives/unsafe-html.js' ;
2222import { carbonElement as customElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js' ;
2323import '@carbon/web-components/es/components/skeleton-text/index.js' ;
24- import { boolean } from '@storybook/addon-knobs' ;
2524
2625const { prefix, stablePrefix : c4dPrefix } = settings ;
2726
@@ -78,8 +77,6 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
7877 @property ( { type : String , attribute : 'environment' } )
7978 environment = 'prod' ;
8079
81- @property ( { type : boolean , attribute : 'is-annual' , reflect : true } )
82- isAnnual = true ;
8380 /**
8481 * End properties for passed attributes.
8582 */
@@ -611,11 +608,6 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
611608 : content . annualText ;
612609 }
613610
614- if ( this . isAnnual ) {
615- preText = content . combinedConsent ;
616- this . showCheckBox = true ;
617- }
618-
619611 // 2. country+state specific override
620612 const stateConfig = content . state ?. [ country ] ;
621613 if ( stateConfig ) {
@@ -645,11 +637,6 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
645637 : this . isAnnualPeriodExpired
646638 ? countryContent . combinedConsent
647639 : countryContent . annualText ;
648-
649- if ( this . isAnnual ) {
650- preText = content . combinedConsent ;
651- this . showCheckBox = true ;
652- }
653640 }
654641
655642 // 4. permission/suppression logic
0 commit comments