import React, { useContext, useEffect } from 'react'; import CustomStepButton from '../../UIComponents/Button/CustomStepButton'; import { FormValue } from '../../../Interfaces/form_interface'; import { scrollToTop } from '../../../Utils/formFunctionHelpers'; import { FormControlLabel, Checkbox } from '@material-ui/core'; import { OPTIONS_FOR_ORG_TYPE, OPTIONS_FOR_PURCHASING_PROCESS, ROUTE_SIGNING, ROUTE_SUBMITTED } from '../../../Constants/Constants'; import ReadOnlyInput from '../../UIComponents/Inputs/ReadOnlyInput'; import { formField } from '../../UIComponents/FormComponents/formFieldModel'; import MembershipContext from '../../../Context/MembershipContext'; interface ReviewProps { values: FormValue; submitForm: () => void; isTermChecked: boolean; setIsTermChecked: (param: boolean) => void; } const Review: React.FC = ({ values, submitForm, isTermChecked, setIsTermChecked }) => { const { setCurrentStepIndex } = useContext(MembershipContext); const handleIsTermChecked = (event: React.ChangeEvent) => { setIsTermChecked(event.target.checked); }; useEffect(() => { scrollToTop(); }, []); useEffect(() => { setCurrentStepIndex(5); }, [setCurrentStepIndex]); return (
{ ev.preventDefault(); submitForm(); }} >

Review and Submit Your Completed Application

Please review your completed Membership Application Form. If you would like to make changes to the information, please click the back button.

Please click submit when ready.

Company Information

item.value === values.organization.type)?.label} label={formField.organizationType.label} required={true} />

Address

Company Representative Contact

Company Marketing Contact

Company Accounting Contact

Purchasing Process and VAT

item.value === values.purchasingAndVAT.purchasingProcess) ?.label } label={formField.purchasingProcess.label} required={true} />

Intended Membership Level

Working Group{values.workingGroups.length > 1 && 's'} to Join

{ // Check if the user joins at least 1 WG, if so, display all. If not, display 'Not joining' values.workingGroups[0].workingGroup.label ? ( values.workingGroups.map((el, index) => (

The Working Group Representative


)) ) : (

Not joining

) }

Signing Authority


Thank you for completing the Membership Application Form. Before you submit your application, as a new Member, you must agree to the following:

1. We will publicly support Eclipse Foundation and its purpose.

2. We will acknowledge our commitment in principle to comply with the Bylawss, the Internal Rules, the Eclipse Foundation Antitrust Policy, IP Policy, and any and all additional policies, procedures and other governing rules of the Eclipse Foundation.

3. We will provide Eclipse Foundation with our logo (or instructions to obtain our logo) in accordance with Section 2.3 of the Eclipse Foundation Membership Agreement. When providing our logo, we will be sure to include a reference or link to any logo and trademark usage guidelines we have.
Eclipse Membership Coordination team will work with us to complete this after our Membership Application is processed.

} label={

I have read and agree to the terms above.*

} /> false} formik={false} updatedFormValues={values} /> ); }; export default Review;