Coming from the New Expensify Forms design doc, we should refactor BankAccountStep to use the new form component, follow the guidelines below:
Here's an example of a Form refactor: #9056
Guidelines
- Replace the form component with Form.js.
- Create a unique Onyx key in ONYXKEYS.FORM and pass it as the formID prop to Form.
- Pass a validate callback prop.
- Pass an onSubmit callback prop that calls the API via an action.
- Update all inputs wrapped by Form, following the guidelines in Refactor inputs.
- Remove any unused code.
Testing
Verify that:
Job Post: https://www.upwork.com/jobs/~015df14d7f44106b74
Coming from the New Expensify Forms design doc, we should refactor BankAccountStep to use the new form component, follow the guidelines below:
Here's an example of a Form refactor: #9056
Guidelines
Testing
Verify that:
fix the errorslink focuses the first input with errorJob Post: https://www.upwork.com/jobs/~015df14d7f44106b74