File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed
dotcom-rendering/src/components/marketing/epics Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,6 @@ const ContributionsEpic: ReactComponent<EpicProps> = ({
263
263
tracking,
264
264
countryCode,
265
265
articleCounts,
266
- onReminderOpen,
267
266
fetchEmail,
268
267
submitComponentEvent,
269
268
openCmp,
@@ -419,7 +418,6 @@ const ContributionsEpic: ReactComponent<EpicProps> = ({
419
418
tracking = { tracking }
420
419
countryCode = { countryCode }
421
420
articleCounts = { articleCounts }
422
- onReminderOpen = { onReminderOpen }
423
421
fetchEmail = { fetchEmail }
424
422
submitComponentEvent = { submitComponentEvent }
425
423
amountsTestName = { choiceCardAmounts ?. testName }
Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ export const ContributionsLiveblogEpic: ReactComponent<EpicProps> = ({
140
140
articleCounts,
141
141
tracking,
142
142
submitComponentEvent,
143
- onReminderOpen,
144
143
fetchEmail,
145
144
} : EpicProps ) : JSX . Element => {
146
145
const { newsletterSignup, tickerSettings } = variant ;
@@ -221,7 +220,6 @@ export const ContributionsLiveblogEpic: ReactComponent<EpicProps> = ({
221
220
tracking = { tracking }
222
221
countryCode = { countryCode }
223
222
articleCounts = { articleCounts }
224
- onReminderOpen = { onReminderOpen }
225
223
fetchEmail = { fetchEmail }
226
224
submitComponentEvent = { submitComponentEvent }
227
225
/>
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import type { SupportTier } from '../utils/threeTierChoiceCardAmounts';
7
7
import { ContributionsEpicButtons } from './ContributionsEpicButtons' ;
8
8
import { ContributionsEpicReminder } from './ContributionsEpicReminder' ;
9
9
10
- interface OnReminderOpen {
11
- buttonCopyAsString : string ;
12
- }
13
-
14
10
type Props = EpicProps & {
15
11
amountsTestName ?: string ;
16
12
amountsVariantName ?: string ;
@@ -23,7 +19,6 @@ export const ContributionsEpicCtasContainer: ReactComponent<Props> = ({
23
19
articleCounts,
24
20
tracking,
25
21
submitComponentEvent,
26
- onReminderOpen,
27
22
fetchEmail,
28
23
amountsTestName,
29
24
amountsVariantName,
@@ -87,18 +82,6 @@ export const ContributionsEpicCtasContainer: ReactComponent<Props> = ({
87
82
tracking = { tracking }
88
83
countryCode = { countryCode }
89
84
onOpenReminderClick = { ( ) : void => {
90
- const buttonCopyAsString = showReminderFields ?. reminderCta
91
- . toLowerCase ( )
92
- . replace ( / \s / g, '-' ) ;
93
-
94
- // This callback lets the platform react to the user interaction with the
95
- // 'Remind me' button
96
- if ( onReminderOpen ) {
97
- onReminderOpen ( {
98
- buttonCopyAsString,
99
- } as OnReminderOpen ) ;
100
- }
101
-
102
85
if ( fetchEmail ) {
103
86
void fetchEmail ( ) . then ( ( resolvedEmail ) => {
104
87
if ( resolvedEmail ) {
You can’t perform that action at this time.
0 commit comments