From 32ae5890a67327cdf6538be747a9a9bf50a4b86f Mon Sep 17 00:00:00 2001 From: Situ Chandra Shil <108292595+situchan@users.noreply.github.com> Date: Thu, 10 Aug 2023 19:44:01 +0600 Subject: [PATCH] Revert "fix: 23369 back button navigation fixed for ondify steps" --- src/components/Onfido/index.css | 6 ------ .../ReimbursementAccount/RequestorOnfidoStep.js | 12 +----------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/components/Onfido/index.css b/src/components/Onfido/index.css index fba72e0139c1..7e05cce7d49d 100644 --- a/src/components/Onfido/index.css +++ b/src/components/Onfido/index.css @@ -47,9 +47,3 @@ height: 92% !important; } } - -.onfido-sdk-ui-NavigationBar-back { - /* This keeps onfido back button hidden since there is already a back button in the top header which - programatically clicks onfido button. */ - visibility: hidden; -} diff --git a/src/pages/ReimbursementAccount/RequestorOnfidoStep.js b/src/pages/ReimbursementAccount/RequestorOnfidoStep.js index f86cbaba79b0..5d91f5dae562 100644 --- a/src/pages/ReimbursementAccount/RequestorOnfidoStep.js +++ b/src/pages/ReimbursementAccount/RequestorOnfidoStep.js @@ -31,16 +31,6 @@ class RequestorOnfidoStep extends React.Component { constructor(props) { super(props); this.submit = this.submit.bind(this); - this.goBack = this.goBack.bind(this); - } - - goBack() { - const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back'); - if (onfidoBack && !onfidoBack.classList.contains('onfido-sdk-ui-NavigationBar-disabled')) { - onfidoBack.click(); - } else { - this.props.onBackButtonPress(); - } } submit(onfidoData) { @@ -60,7 +50,7 @@ class RequestorOnfidoStep extends React.Component { stepCounter={{step: 3, total: 5}} shouldShowGetAssistanceButton guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_BANK_ACCOUNT} - onBackButtonPress={this.goBack} + onBackButtonPress={this.props.onBackButtonPress} />