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 68cf372 commit 709992f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ class ReimbursementAccountPage extends React.Component {
<RequestorStep
ref={this.requestorStepRef}
reimbursementAccount={this.props.reimbursementAccount}
reimbursementAccountDraft={this.props.reimbursementAccountDraft}
onBackButtonPress={this.goBack}
shouldShowOnfido={Boolean(shouldShowOnfido)}
getDefaultStateForField={this.getDefaultStateForField}
Expand Down
4 changes: 1 addition & 3 deletions src/pages/ReimbursementAccount/RequestorStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ import Form from '../../components/Form';
import ScreenWrapper from '../../components/ScreenWrapper';
import useLocalize from '../../hooks/useLocalize';
import {reimbursementAccountPropTypes} from './reimbursementAccountPropTypes';
import ReimbursementAccountDraftPropTypes from './ReimbursementAccountDraftPropTypes';

const propTypes = {
onBackButtonPress: PropTypes.func.isRequired,
getDefaultStateForField: PropTypes.func.isRequired,
reimbursementAccount: reimbursementAccountPropTypes.isRequired,
reimbursementAccountDraft: ReimbursementAccountDraftPropTypes.isRequired,

/** If we should show Onfido flow */
shouldShowOnfido: PropTypes.bool.isRequired,
Expand Down Expand Up @@ -72,7 +70,7 @@ const validate = (values) => {
return errors;
};

function RequestorStep({reimbursementAccount, shouldShowOnfido, reimbursementAccountDraft, onBackButtonPress, getDefaultStateForField}) {
function RequestorStep({reimbursementAccount, shouldShowOnfido, onBackButtonPress, getDefaultStateForField}) {
const {translate} = useLocalize();

const defaultValues = useMemo(
Expand Down

0 comments on commit 709992f

Please sign in to comment.