(form: FormikContextType<T>, callback?: (value: string) => void)
| 88 | |
| 89 | export const onChangeTrimmed = |
| 90 | <T>(form: FormikContextType<T>, callback?: (value: string) => void) => |
| 91 | (event: ChangeEvent<HTMLInputElement>): void => { |
| 92 | event.target.value = event.target.value.trim(); |
| 93 | form.handleChange(event); |
| 94 | callback?.(event.target.value); |
| 95 | }; |
| 96 | |
| 97 | // REMARK: Keep these consts in sync with coderd/httpapi/httpapi.go |
| 98 | const maxLenName = 32; |
no outgoing calls
no test coverage detected