Cleanup, comments, e2e
This commit is contained in:
parent
1e0594a488
commit
8faa5354a8
14 changed files with 288 additions and 232 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue