Skip to content

Commit

Permalink
fix: props 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveOWO committed Dec 28, 2023
1 parent 18e0391 commit c5efa81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useFormWithRef.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FieldValues, useForm } from "react-hook-form";
import { FieldValues, useForm, UseFormProps } from "react-hook-form";
import { useRegisterWithRef } from "./useRegisterWithRef";

export default function useFormWithRef<TFieldValues extends FieldValues = {}>(
fieldValues?: TFieldValues
formProps?: UseFormProps<TFieldValues>
) {
const methods = useForm<TFieldValues>(fieldValues);
const methods = useForm<TFieldValues>(formProps);
const { register } = methods;

const { registerWithRef, instanceRef } =
Expand Down

0 comments on commit c5efa81

Please sign in to comment.