diff --git a/src/app/(main)/teampsylog/_components/BottomComment.tsx b/src/app/(main)/teampsylog/_components/BottomComment.tsx
index a8919071..30c05628 100644
--- a/src/app/(main)/teampsylog/_components/BottomComment.tsx
+++ b/src/app/(main)/teampsylog/_components/BottomComment.tsx
@@ -27,23 +27,19 @@ const BottomComment = ({ isOpen, onClose, children }: BottomSheetProps) => {
return (
<>
{/* 바텀 시트 */}
{/* mobile */}
diff --git a/src/components/recruit/RecruitForm.tsx b/src/components/recruit/RecruitForm.tsx
index d42e9df5..d00c87fb 100644
--- a/src/components/recruit/RecruitForm.tsx
+++ b/src/components/recruit/RecruitForm.tsx
@@ -13,6 +13,7 @@ import Button from '@/components/common/Button';
import { Project } from '@/types/project';
import { useRecruitForm } from './useRecruitForm';
import { RecruitFormType } from '@/libs/schemas/projectSchema';
+import { FormProvider } from 'react-hook-form';
type RecruitFormProps = {
mode?: 'create' | 'edit';
@@ -31,15 +32,7 @@ const RecruitForm = ({
onNext,
initialFormData,
}: RecruitFormProps) => {
- const {
- handleSubmit,
- control,
- watch,
- reset,
- formState: { isValid, errors },
- onSubmit,
- onError,
- } = useRecruitForm({
+ const { formMethods, onSubmit, onError } = useRecruitForm({
mode,
initialData,
postId,
@@ -47,6 +40,13 @@ const RecruitForm = ({
onNext,
initialFormData,
});
+ const {
+ handleSubmit,
+ control,
+ watch,
+ reset,
+ formState: { isValid, errors },
+ } = formMethods;
useEffect(() => {
if (initialFormData && mode === 'create' && !showProfileList) {
@@ -70,43 +70,45 @@ const RecruitForm = ({
};
return (
-