Skip to content

Commit 62b98a8

Browse files
author
“LAKSHMIRPILLAI”
committed
Fix onReminderOpen
2 parents 48fbdf4 + 50a981e commit 62b98a8

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

dotcom-rendering/src/components/marketing/epics/ContributionsEpic.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ const ContributionsEpic: ReactComponent<EpicProps> = ({
263263
tracking,
264264
countryCode,
265265
articleCounts,
266-
onReminderOpen,
267266
fetchEmail,
268267
submitComponentEvent,
269268
openCmp,
@@ -419,7 +418,6 @@ const ContributionsEpic: ReactComponent<EpicProps> = ({
419418
tracking={tracking}
420419
countryCode={countryCode}
421420
articleCounts={articleCounts}
422-
onReminderOpen={onReminderOpen}
423421
fetchEmail={fetchEmail}
424422
submitComponentEvent={submitComponentEvent}
425423
amountsTestName={choiceCardAmounts?.testName}

dotcom-rendering/src/components/marketing/epics/ContributionsLiveblogEpic.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export const ContributionsLiveblogEpic: ReactComponent<EpicProps> = ({
140140
articleCounts,
141141
tracking,
142142
submitComponentEvent,
143-
onReminderOpen,
144143
fetchEmail,
145144
}: EpicProps): JSX.Element => {
146145
const { newsletterSignup, tickerSettings } = variant;
@@ -221,7 +220,6 @@ export const ContributionsLiveblogEpic: ReactComponent<EpicProps> = ({
221220
tracking={tracking}
222221
countryCode={countryCode}
223222
articleCounts={articleCounts}
224-
onReminderOpen={onReminderOpen}
225223
fetchEmail={fetchEmail}
226224
submitComponentEvent={submitComponentEvent}
227225
/>

dotcom-rendering/src/components/marketing/epics/ctas/ContributionsEpicCtasContainer.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import type { SupportTier } from '../utils/threeTierChoiceCardAmounts';
77
import { ContributionsEpicButtons } from './ContributionsEpicButtons';
88
import { ContributionsEpicReminder } from './ContributionsEpicReminder';
99

10-
interface OnReminderOpen {
11-
buttonCopyAsString: string;
12-
}
13-
1410
type Props = EpicProps & {
1511
amountsTestName?: string;
1612
amountsVariantName?: string;
@@ -23,7 +19,6 @@ export const ContributionsEpicCtasContainer: ReactComponent<Props> = ({
2319
articleCounts,
2420
tracking,
2521
submitComponentEvent,
26-
onReminderOpen,
2722
fetchEmail,
2823
amountsTestName,
2924
amountsVariantName,
@@ -87,18 +82,6 @@ export const ContributionsEpicCtasContainer: ReactComponent<Props> = ({
8782
tracking={tracking}
8883
countryCode={countryCode}
8984
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-
10285
if (fetchEmail) {
10386
void fetchEmail().then((resolvedEmail) => {
10487
if (resolvedEmail) {

0 commit comments

Comments
 (0)