[Polish] Rename "validate" option to "onSubmit"
The following discussion from !144 (merged) should be addressed:
-
@ealcantara started a discussion: thought (non blocking): We can also name it
onSubmitand allow it to return anInputBoxStateobject with the validity status:onSubmit: (): InputBoxState => { const error = validateAndSubmitBranchName(branchName, { ref: commitId, isEmptyRepo, projectPath }); if(error) { return { valid: false, invalidMessage: error }; } return null; }