Skip to content

Commit 7bb5239

Browse files
authored
Merge pull request #24373 from situchan/revert-23864-fix/23369
Revert "fix: 23369 back button navigation fixed for ondify steps"
2 parents 774b78c + 32ae589 commit 7bb5239

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/components/Onfido/index.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,3 @@
4747
height: 92% !important;
4848
}
4949
}
50-
51-
.onfido-sdk-ui-NavigationBar-back {
52-
/* This keeps onfido back button hidden since there is already a back button in the top header which
53-
programatically clicks onfido button. */
54-
visibility: hidden;
55-
}

src/pages/ReimbursementAccount/RequestorOnfidoStep.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ class RequestorOnfidoStep extends React.Component {
3131
constructor(props) {
3232
super(props);
3333
this.submit = this.submit.bind(this);
34-
this.goBack = this.goBack.bind(this);
35-
}
36-
37-
goBack() {
38-
const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back');
39-
if (onfidoBack && !onfidoBack.classList.contains('onfido-sdk-ui-NavigationBar-disabled')) {
40-
onfidoBack.click();
41-
} else {
42-
this.props.onBackButtonPress();
43-
}
4434
}
4535

4636
submit(onfidoData) {
@@ -60,7 +50,7 @@ class RequestorOnfidoStep extends React.Component {
6050
stepCounter={{step: 3, total: 5}}
6151
shouldShowGetAssistanceButton
6252
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_BANK_ACCOUNT}
63-
onBackButtonPress={this.goBack}
53+
onBackButtonPress={this.props.onBackButtonPress}
6454
/>
6555
<FullPageOfflineBlockingView>
6656
<ScrollView contentContainerStyle={styles.flex1}>

0 commit comments

Comments
 (0)