Cleanup, comments, e2e

This commit is contained in:
Jesus Vasquez 2024-03-05 17:42:30 -05:00
parent 1e0594a488
commit 8faa5354a8
14 changed files with 288 additions and 232 deletions

View file

@ -4,6 +4,7 @@ import ErrorMessage from "./ErrorMessage"
import RequiredAsterisk from "./RequiredAsterisk"
const SelectInput = ({ label, ...props }: { label?: string; name: string; [x: string]: any }) => {
// Since `useField` only needs `name`, and optionally `type` and `value`, we destruct those from props
const { required, ...restProps } = props
const [field, meta] = useField(restProps)