Skip to content

Commit

Permalink
Merge branch 'master' of github.com:binary-com/deriv-app into maryia/…
Browse files Browse the repository at this point in the history
…OPT-862/update-step-indices
  • Loading branch information
maryia-deriv committed Jul 2, 2024
2 parents c2b796c + a8c2dde commit 176ed41
Show file tree
Hide file tree
Showing 1,078 changed files with 5,623 additions and 38,024 deletions.
520 changes: 31 additions & 489 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-brand-deriv-go-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-brand-deriv-go-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions packages/account/src/Assets/ic-error-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-poi-back-btn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-poi-dob-example.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-poi-name-dob-example.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/account/src/Assets/ic-poi-name-example.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ type TCardDetails = {
onComplete: (e: object) => void;
goToCards: () => void;
is_from_external?: boolean;
setIsCfdPoiCompleted?: (is_cfd_poi_completed: boolean) => void;
};

const CardDetails = ({ data, goToCards, onComplete, is_from_external, setIsCfdPoiCompleted }: TCardDetails) => {
const CardDetails = ({ data, goToCards, onComplete, is_from_external }: TCardDetails) => {
const [documents, setDocuments] = React.useState<FormikValues>();
const [selfie, setSelfie] = React.useState<FormikValues>();
const [is_selfie_upload, setIsSelfieUpload] = React.useState(false);
Expand All @@ -25,7 +24,6 @@ const CardDetails = ({ data, goToCards, onComplete, is_from_external, setIsCfdPo

const onConfirmDocuments = (values?: FormikValues) => {
onComplete({ ...documents, ...values });
setIsCfdPoiCompleted?.(true);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type TDetailComponent = {
handleComplete?: () => void;
is_onfido_supported?: boolean;
is_from_external?: boolean;
setIsCfdPoiCompleted?: () => void;
is_for_mt5?: boolean;
handlePOIforMT5Complete?: () => void;
};
Expand All @@ -43,7 +42,6 @@ const DetailComponent = ({
handleComplete,
is_onfido_supported,
is_from_external,
setIsCfdPoiCompleted,
is_for_mt5,
handlePOIforMT5Complete,
...props
Expand Down Expand Up @@ -172,7 +170,6 @@ const DetailComponent = ({
onComplete={onComplete}
goToCards={onClickBack}
is_from_external={is_from_external}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
/>
)}
</React.Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jest.mock('Components/poi/status/expired', () => jest.fn(() => 'mockedExpired'))

const mock_props = {
onStateChange: jest.fn(),
setIsCfdPoiCompleted: jest.fn(),
is_from_external: false,
height: '200',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const Onfido = ({
onfido,
redirect_button,
manual,
setIsCfdPoiCompleted,
country_code,
handleViewComplete,
}) => {
Expand All @@ -37,7 +36,6 @@ const Onfido = ({
<Unsupported
manual={manual}
is_from_external={is_from_external}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
country_code={country_code}
handleViewComplete={handleViewComplete}
onfido={onfido}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Verified from '../../../Components/poi/status/verified';
import { populateVerificationStatus } from '../Helpers/verification';

const ProofOfIdentityContainer = observer(
({ height, is_from_external, onStateChange, setIsCfdPoiCompleted, getChangeableFields, updateAccountStatus }) => {
({ height, is_from_external, onStateChange, getChangeableFields, updateAccountStatus }) => {
const history = useHistory();
const [api_error, setAPIError] = React.useState();
const [has_require_submission, setHasRequireSubmission] = React.useState(false);
Expand Down Expand Up @@ -167,7 +167,6 @@ const ProofOfIdentityContainer = observer(
redirect_button={redirect_button}
refreshNotifications={refreshNotifications}
residence_list={residence_list}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
updateAccountStatus={updateAccountStatus}
should_show_mismatch_form={should_show_mismatch_form}
/>
Expand Down Expand Up @@ -233,7 +232,6 @@ const ProofOfIdentityContainer = observer(
needs_poa={needs_poa}
onfido={onfido}
manual={manual}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
redirect_button={redirect_button}
country_code={country_code}
handleViewComplete={handleManualSubmit}
Expand All @@ -245,7 +243,6 @@ const ProofOfIdentityContainer = observer(
manual={manual}
country_code={country_code}
is_from_external={is_from_external}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
needs_poa={needs_poa}
redirect_button={redirect_button}
handleRequireSubmission={handleRequireSubmission}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const POISubmission = observer(
onStateChange,
redirect_button,
residence_list,
setIsCfdPoiCompleted,
should_show_mismatch_form,
}) => {
const {
Expand Down Expand Up @@ -203,7 +202,6 @@ const POISubmission = observer(
<Unsupported
country_code={selected_country.value}
is_from_external={is_from_external}
setIsCfdPoiCompleted={setIsCfdPoiCompleted}
allow_poi_resubmission={allow_poi_resubmission}
handleViewComplete={handleViewComplete}
onfido={onfido}
Expand Down
Loading

0 comments on commit 176ed41

Please sign in to comment.