diff --git a/src/pages/ReimbursementAccount/IdentityForm.js b/src/pages/ReimbursementAccount/IdentityForm.js index 9e61c3db9b95..27d12b2f9d75 100644 --- a/src/pages/ReimbursementAccount/IdentityForm.js +++ b/src/pages/ReimbursementAccount/IdentityForm.js @@ -14,9 +14,6 @@ const propTypes = { /** Style for wrapping View */ style: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]), - /** Callback fired when a field changes. Passes args as {[fieldName]: val} */ - onFieldChange: PropTypes.func, - /** Form values */ values: PropTypes.shape({ /** First name field */ @@ -127,7 +124,6 @@ const defaultProps = { ssnLast4: '', }, shouldSaveDraft: false, - onFieldChange: () => {}, }; function IdentityForm(props) { @@ -152,7 +148,6 @@ function IdentityForm(props) { role={CONST.ROLE.PRESENTATION} value={props.values.firstName} defaultValue={props.defaultValues.firstName} - onChangeText={(value) => props.onFieldChange({firstName: value})} errorText={props.errors.firstName ? props.translate('bankAccount.error.firstName') : ''} /> @@ -166,7 +161,6 @@ function IdentityForm(props) { role={CONST.ROLE.PRESENTATION} value={props.values.lastName} defaultValue={props.defaultValues.lastName} - onChangeText={(value) => props.onFieldChange({lastName: value})} errorText={props.errors.lastName ? props.translate('bankAccount.error.lastName') : ''} /> @@ -193,7 +187,6 @@ function IdentityForm(props) { containerStyles={[styles.mt4]} inputMode={CONST.INPUT_MODE.NUMERIC} defaultValue={props.defaultValues.ssnLast4} - onChangeText={(value) => props.onFieldChange({ssnLast4: value})} errorText={props.errors.ssnLast4 ? props.translate('bankAccount.error.ssnLast4') : ''} maxLength={CONST.BANK_ACCOUNT.MAX_LENGTH.SSN} /> @@ -205,7 +198,6 @@ function IdentityForm(props) { values={_.omit(props.values, identityFormInputKeys)} defaultValues={_.omit(props.defaultValues, identityFormInputKeys)} errors={props.errors} - onFieldChange={props.onFieldChange} /> );