@homefile/components-v2 2.49.8 → 2.49.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,5 +10,5 @@ export const NewParterDetails = () => {
|
|
|
10
10
|
const { fields: contactFields, validations: contactValidations } = useSnapshot(partnerPointContactProxy, { sync: true });
|
|
11
11
|
const { handleCompanyEmailValidation, handleCompanyNameValidation, handleCompanyPhoneValidation, handleErrorMessage: handleCompanyError, handleInputChange: handleCompanyInput, } = usePartnerCompany();
|
|
12
12
|
const { handleContactEmailValidation, handleContactFirstNameValidation, handleErrorMessage: handleContactError, handleInputChange: handleContactInput, } = usePartnerContact(partnerPointContactProxy);
|
|
13
|
-
return (_jsxs(Stack, { spacing: "base", children: [_jsx(TextInput, { id: "companyName", placeholder: t('forms.companyName'), value: companyFields.companyName, handleChange: (event) => handleCompanyInput(event, 'companyName'), onBlurCapture: handleCompanyNameValidation, hasError: !companyValidations.isCompanyNameValid, errorMessage: handleCompanyError('companyName') }), _jsx(AddressStored, { proxy: partnerCompanyAddressProxy }), _jsxs(Flex, { gap: "base", direction: ['column', 'row'], children: [_jsx(TextInput, { id: "companyEmail", placeholder: t('forms.companyEmail'), value: companyFields.companyEmail, handleChange: (event) => handleCompanyInput(event, 'companyEmail'), onBlurCapture: handleCompanyEmailValidation, hasError: !companyValidations.isCompanyEmailValid, errorMessage: handleCompanyError('companyEmail') }), _jsx(TextInput, { id: "companyPhone", placeholder: t('forms.companyPhone'), value: companyFields.companyPhone, handleChange: (event) => handleCompanyInput(event, 'companyPhone'), onBlurCapture: handleCompanyPhoneValidation, hasError: !companyValidations.isCompanyPhoneValid, errorMessage: handleCompanyError('companyPhone') })] }), _jsx(Box, { bg: "lightBlue.4", p: "base", borderRadius: "sm", children: _jsxs(Stack, { spacing: "base", children: [_jsx(Text, {
|
|
13
|
+
return (_jsxs(Stack, { spacing: "base", children: [_jsx(TextInput, { id: "companyName", placeholder: t('forms.companyName'), value: companyFields.companyName, handleChange: (event) => handleCompanyInput(event, 'companyName'), onBlurCapture: handleCompanyNameValidation, hasError: !companyValidations.isCompanyNameValid, errorMessage: handleCompanyError('companyName') }), _jsx(AddressStored, { proxy: partnerCompanyAddressProxy }), _jsxs(Flex, { gap: "base", direction: ['column', 'row'], children: [_jsx(TextInput, { id: "companyEmail", placeholder: t('forms.companyEmail'), value: companyFields.companyEmail, handleChange: (event) => handleCompanyInput(event, 'companyEmail'), onBlurCapture: handleCompanyEmailValidation, hasError: !companyValidations.isCompanyEmailValid, errorMessage: handleCompanyError('companyEmail') }), _jsx(TextInput, { id: "companyPhone", placeholder: t('forms.companyPhone'), value: companyFields.companyPhone, handleChange: (event) => handleCompanyInput(event, 'companyPhone'), onBlurCapture: handleCompanyPhoneValidation, hasError: !companyValidations.isCompanyPhoneValid, errorMessage: handleCompanyError('companyPhone') })] }), _jsx(Box, { bg: "lightBlue.4", p: "base", borderRadius: "sm", children: _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { children: t('partner.form.titles.companyPointOfContact') }), _jsxs(Flex, { gap: "base", direction: ['column', 'row'], align: ['center', 'end'], children: [_jsx(TextInput, { id: "pointContactName", placeholder: "Name", value: contactFields.firstName, handleChange: (event) => handleContactInput(event, 'firstName'), onBlurCapture: handleContactFirstNameValidation, hasError: !contactValidations.isFirstNameValid, errorMessage: handleContactError('firstName') }), _jsx(TextInput, { id: "pointContactEmail", placeholder: t('forms.email'), value: contactFields.email, handleChange: (event) => handleContactInput(event, 'email'), onBlurCapture: handleContactEmailValidation, hasError: !contactValidations.isEmailValid, errorMessage: handleContactError('email') })] })] }) })] }));
|
|
14
14
|
};
|