Skip to content

Commit

Permalink
Fix propTypes for RequestorStep
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaHCD committed Oct 18, 2022
1 parent e03a8d7 commit 75ab5b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/pages/ReimbursementAccount/RequestorOnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ const propTypes = {
/** Bank account currently in setup */
/* eslint-disable-next-line react/no-unused-prop-types */
reimbursementAccount: reimbursementAccountPropTypes.isRequired,

/** The draft values of the bank account being setup */
/* eslint-disable-next-line react/no-unused-prop-types */
reimbursementAccountDraft: reimbursementAccountDraftPropTypes.isRequired,
onfidoToken: PropTypes.string,

/** The token required to initialize the Onfido SDK */
onfidoToken: PropTypes.string.isRequired,

/** A callback to call once the user completes the Onfido flow */
onComplete: PropTypes.func.isRequired,

...withLocalizePropTypes,
};

const defaultProps = {
onfidoToken: '',
};
const defaultProps = {};

class RequestorOnfidoStep extends React.Component {
constructor(props) {
Expand Down
7 changes: 6 additions & 1 deletion src/pages/ReimbursementAccount/RequestorStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ import * as Link from '../../libs/actions/Link';
import RequestorOnfidoStep from './RequestorOnfidoStep';

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

/** The draft values of the bank account being setup */
/* eslint-disable-next-line react/no-unused-prop-types */
reimbursementAccountDraft: reimbursementAccountDraftPropTypes.isRequired,

/** The token required to initialize the Onfido SDK */
onfidoToken: PropTypes.string,

...withLocalizePropTypes,
};

Expand Down

0 comments on commit 75ab5b9

Please sign in to comment.