File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/gui/src/dashboard/components/AriaComponents/Form/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function mapValueOnEvent(value: unknown) {
43
43
* Otherwise you'll be fired
44
44
*/
45
45
export function useForm < Schema extends types . TSchema , SubmitResult = void > (
46
- optionsOrFormInstance : types . UseFormProps < Schema , SubmitResult > | types . UseFormReturn < Schema > ,
46
+ optionsOrFormInstance : types . UseFormOptions < Schema , SubmitResult > | types . UseFormReturn < Schema > ,
47
47
) : types . UseFormReturn < Schema > {
48
48
const { getText } = useText ( )
49
49
const [ initialTypePassed ] = React . useState ( ( ) => getArgsType ( optionsOrFormInstance ) )
@@ -242,7 +242,7 @@ export function useForm<Schema extends types.TSchema, SubmitResult = void>(
242
242
243
243
/** Get the type of arguments passed to the useForm hook */
244
244
function getArgsType < Schema extends types . TSchema , SubmitResult = void > (
245
- args : types . UseFormProps < Schema , SubmitResult > ,
245
+ args : types . UseFormOptions < Schema , SubmitResult > ,
246
246
) {
247
247
return 'formState' in args ? ( 'formInstance' as const ) : ( 'formOptions' as const )
248
248
}
You can’t perform that action at this time.
0 commit comments