Skip to content

Commit

Permalink
fix: remove not used props from proptypes for RequestorOnfidoStep
Browse files Browse the repository at this point in the history
  • Loading branch information
barttom committed Oct 19, 2023
1 parent 229cb5d commit 68cf372
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/pages/ReimbursementAccount/RequestorOnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ import ONYXKEYS from '../../ONYXKEYS';
import Growl from '../../libs/Growl';
import CONST from '../../CONST';
import FullPageOfflineBlockingView from '../../components/BlockingViews/FullPageOfflineBlockingView';
import StepPropTypes from './StepPropTypes';
import HeaderWithBackButton from '../../components/HeaderWithBackButton';
import ScreenWrapper from '../../components/ScreenWrapper';
import useLocalize from '../../hooks/useLocalize';
import * as ReimbursementAccountProps from './reimbursementAccountPropTypes';

const propTypes = {
...StepPropTypes,
/** The bank account currently in setup */
reimbursementAccount: ReimbursementAccountProps.reimbursementAccountPropTypes.isRequired,

/** Goes to the previous step */
onBackButtonPress: PropTypes.func.isRequired,

/** The token required to initialize the Onfido SDK */
onfidoToken: PropTypes.string,
Expand Down
2 changes: 0 additions & 2 deletions src/pages/ReimbursementAccount/RequestorStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ function RequestorStep({reimbursementAccount, shouldShowOnfido, reimbursementAcc
return (
<RequestorOnfidoStep
reimbursementAccount={reimbursementAccount}
reimbursementAccountDraft={reimbursementAccountDraft}
onBackButtonPress={onBackButtonPress}
getDefaultStateForField={getDefaultStateForField}
/>
);
}
Expand Down

0 comments on commit 68cf372

Please sign in to comment.