Skip to content

Commit

Permalink
beginning of contact mutation work SQUASH
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Pastika committed Jul 8, 2024
1 parent 8a4828b commit 71cf81d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Tool/FixEmailAddresses/FixEmailAddressPerson.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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: '',
Expand Down
7 changes: 7 additions & 0 deletions src/components/Tool/FixEmailAddresses/FixEmailAddresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ export const FixEmailAddresses: React.FC<FixEmailAddressesProps> = ({
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 };
Expand Down

0 comments on commit 71cf81d

Please sign in to comment.