From bb42ffb4910c2b2d3a33a482bca32f3819d83aa0 Mon Sep 17 00:00:00 2001 From: Bill Randall Date: Fri, 12 Jul 2024 11:34:47 -0400 Subject: [PATCH 01/10] Rename function to be more consistent with the codebase --- src/components/Tool/FixSendNewsletter/Contact.test.tsx | 2 +- src/components/Tool/FixSendNewsletter/Contact.tsx | 6 +++--- src/components/Tool/FixSendNewsletter/FixSendNewsletter.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Tool/FixSendNewsletter/Contact.test.tsx b/src/components/Tool/FixSendNewsletter/Contact.test.tsx index 17ac3c4f2..e734d5d81 100644 --- a/src/components/Tool/FixSendNewsletter/Contact.test.tsx +++ b/src/components/Tool/FixSendNewsletter/Contact.test.tsx @@ -21,7 +21,7 @@ const TestComponent = ({ primaryPerson={primaryPerson} status="" primaryAddress={primaryAddress} - updateFunction={jest.fn()} + handleSingleConfirm={jest.fn()} setContactFocus={jest.fn()} /> diff --git a/src/components/Tool/FixSendNewsletter/Contact.tsx b/src/components/Tool/FixSendNewsletter/Contact.tsx index 0a935f501..85a36a7e3 100644 --- a/src/components/Tool/FixSendNewsletter/Contact.tsx +++ b/src/components/Tool/FixSendNewsletter/Contact.tsx @@ -85,7 +85,7 @@ interface Props { status?: string; primaryAddress?: ContactPrimaryAddressFragment; source?: string; - updateFunction: (id: string, sendNewsletter: string) => Promise; + handleSingleConfirm: (id: string, sendNewsletter: string) => Promise; setContactFocus: SetContactFocus; } @@ -95,7 +95,7 @@ const Contact = ({ primaryPerson, status, primaryAddress, - updateFunction, + handleSingleConfirm, setContactFocus, }: Props): ReactElement => { const { t } = useTranslation(); @@ -252,7 +252,7 @@ const Contact = ({