Skip to content

Commit

Permalink
Merge pull request #24373 from situchan/revert-23864-fix/23369
Browse files Browse the repository at this point in the history
Revert "fix: 23369 back button navigation fixed for ondify steps"
  • Loading branch information
MariaHCD authored Aug 10, 2023
2 parents 774b78c + 32ae589 commit 7bb5239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 0 additions & 6 deletions src/components/Onfido/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
12 changes: 1 addition & 11 deletions src/pages/ReimbursementAccount/RequestorOnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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}
/>
<FullPageOfflineBlockingView>
<ScrollView contentContainerStyle={styles.flex1}>
Expand Down

0 comments on commit 7bb5239

Please sign in to comment.