diff --git a/src/components/Tool/FixEmailAddresses/FixEmailAddressPerson.tsx b/src/components/Tool/FixEmailAddresses/FixEmailAddressPerson.tsx index 54bfd3b1b..58158d62d 100644 --- a/src/components/Tool/FixEmailAddresses/FixEmailAddressPerson.tsx +++ b/src/components/Tool/FixEmailAddresses/FixEmailAddressPerson.tsx @@ -25,6 +25,7 @@ import { useLocale } from 'src/hooks/useLocale'; import { dateFormatShort } from 'src/lib/intlFormat'; import theme from '../../../theme'; import { ConfirmButtonIcon } from '../ConfirmButtonIcon'; +// import { useEmailAddressesMutation } from './AddEmailAddress.generated'; import { EmailAddressData } from './FixEmailAddresses'; const ContactInputField = styled(TextField, { @@ -133,6 +134,16 @@ interface EmailValidationFormProps { const onSubmit = () => {}; +// const [handleAdd] = useEmailAddressesMutation(); +// const email = ''; + +// const [emailAddressesMutation, { data, loading, error }] = +// useEmailAddressesMutation({ +// variables: { +// input: email, +// }, +// }); + const EmailValidationForm = ({ emails: initialEmail = { email: '', diff --git a/src/components/Tool/FixEmailAddresses/FixEmailAddresses.tsx b/src/components/Tool/FixEmailAddresses/FixEmailAddresses.tsx index e4e66a5b3..e12257bc8 100644 --- a/src/components/Tool/FixEmailAddresses/FixEmailAddresses.tsx +++ b/src/components/Tool/FixEmailAddresses/FixEmailAddresses.tsx @@ -215,6 +215,13 @@ export const FixEmailAddresses: React.FC = ({ setDataState(temp); }; + // const [updatePersonMutation, { data, loading, error }] = + // useUpdatePersonMutation({ + // variables: { + // input: { ...dataState }, + // }, + // }); + // Change the primary address in the state const handleChangePrimary = (personId: string, emailIndex: number): void => { const temp = { ...dataState };