From 0cc71d1931e9cbb41d56953e535637d1b7e3353a Mon Sep 17 00:00:00 2001 From: Likhith Kolayari Date: Tue, 2 May 2023 10:05:21 +0400 Subject: [PATCH] feat: incorporated shared component into poi --- .../forms/personal-details-form.jsx | 12 +++++-- ...oi-confirm-with-example-form-container.tsx | 31 ++++++++++++++++--- .../ProofOfIdentity/onfido-sdk-view.jsx | 2 +- packages/core/src/sass/account-wizard.scss | 10 +++--- .../_common/components/onfido-container.scss | 11 ++++--- 5 files changed, 49 insertions(+), 17 deletions(-) diff --git a/packages/account/src/Components/forms/personal-details-form.jsx b/packages/account/src/Components/forms/personal-details-form.jsx index 6641eaad9cee..6a01833bdc11 100644 --- a/packages/account/src/Components/forms/personal-details-form.jsx +++ b/packages/account/src/Components/forms/personal-details-form.jsx @@ -91,6 +91,7 @@ const PersonalDetailsForm = ({ account_opening_reason_list, closeRealAccountSignup, salutation_list, + is_rendered_for_onfido, } = props; const autocomplete_value = 'none'; const PoiNameDobExampleIcon = PoiNameDobExample; @@ -126,7 +127,10 @@ const PersonalDetailsForm = ({ return (
- }> + } + >
{'salutation' in values && (
@@ -151,7 +155,7 @@ const PersonalDetailsForm = ({
)} - {!is_qualified_for_idv && !is_appstore && ( + {!is_qualified_for_idv && !is_appstore && !is_rendered_for_onfido && ( )} {'salutation' in values && ( @@ -197,7 +201,9 @@ const PersonalDetailsForm = ({ data-testid='last_name' /> )} - {!is_appstore && !is_qualified_for_idv && } + {!is_appstore && !is_qualified_for_idv && !is_rendered_for_onfido && ( + + )} {'date_of_birth' in values && ( - {({ values, errors, handleChange, handleBlur, handleSubmit, isSubmitting, setFieldValue }) => ( -
+ {({ + values, + errors, + touched, + handleChange, + handleBlur, + handleSubmit, + isSubmitting, + setFieldValue, + setFieldTouched, + }) => ( + - */} + +