[Cashtab] Patch validation bug on settings page
Summary:
Cashtab app shows validation errors in modals to delete wallet and to rename wallet without any user input. This diff ensures that validation errors only appear after invalid input is entered.
Mnemonic validation not showing properly. Resolved by matching same format used for delete and rename wallet validation.
Test Plan:
- npm start
- try to rename a wallet, observe validation error does not appear unless an invalid name is typed (or blank input is submitted)
- try to delete a wallet, observe validation error does not appear unless input is typed incorrectly (or blank input is submitted)
- Copy paste a mnemonic seed into "Import Wallet' mnemonic field. Change 1 letter and observe validation error.
Reviewers: #bitcoin_abc, majcosta
Reviewed By: #bitcoin_abc, majcosta
Differential Revision: https://reviews.bitcoinabc.org/D9479