diff --git a/src/pages/workspace/WorkspaceBankAccountPage.js b/src/pages/workspace/WorkspaceBankAccountPage.js index 67ed050f504a..d1c8b88476f5 100644 --- a/src/pages/workspace/WorkspaceBankAccountPage.js +++ b/src/pages/workspace/WorkspaceBankAccountPage.js @@ -1,8 +1,10 @@ import lodashGet from 'lodash/get'; import React from 'react'; import {withOnyx} from 'react-native-onyx'; +import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; import * as Expensicons from '../../components/Icon/Expensicons'; import * as Illustrations from '../../components/Icon/Illustrations'; +import ScreenWrapper from '../../components/ScreenWrapper'; import ExpensifyText from '../../components/ExpensifyText'; import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; import * as BankAccounts from '../../libs/actions/BankAccounts'; @@ -14,8 +16,6 @@ import ROUTES from '../../ROUTES'; import reimbursementAccountPropTypes from '../ReimbursementAccount/reimbursementAccountPropTypes'; import WorkspaceSection from './WorkspaceSection'; import WorkspaceResetBankAccountModal from './WorkspaceResetBankAccountModal'; -import WorkspacePageWithSections from './WorkspacePageWithSections'; - const propTypes = { /** ACH data for the withdrawal account actively being set up */ @@ -85,38 +85,37 @@ class WorkspaceBankAccountPage extends React.Component { } return ( - - {() => ( - <> - - - {this.props.translate('workspace.bankAccount.youreAlmostDone')} - - - - - )} - + + Navigation.navigate(ROUTES.getWorkspaceInitialRoute(this.props.route.params.policyID))} + shouldShowBackButton + /> + + + {this.props.translate('workspace.bankAccount.youreAlmostDone')} + + + + ); } }