@@ -2,7 +2,7 @@ import { generatePath, useNavigate } from 'react-router-dom';
22import { useMutation } from '@tanstack/react-query' ;
33import { putFestivalNotice } from '@/apis/notice/putFestivalNotice' ;
44import FormSubmitButtons from '@/components/common/FormSubmitButtons' ;
5- import type { NoticeUpdateRequest } from '@/types/Notice' ;
5+ import type { NoticeRequest } from '@/types/Notice' ;
66import FestivalInfoNoticeRuleCard from '@/pages/FestivalInfoNoticeCreate/components/FestivalInfoNoticeRuleCard' ;
77import useNav from '@/hooks/useNav' ;
88import { useMediaUpload } from '@/hooks/useMediaUpload' ;
@@ -57,7 +57,7 @@ const FestivalInfoNoticeEditForm = ({
5757 } , [ noticeData . images , setImageInfos ] ) ;
5858
5959 const { mutate : submitApplication , isPending } = useMutation ( {
60- mutationFn : ( body : NoticeUpdateRequest ) => putFestivalNotice ( noticeId , body ) ,
60+ mutationFn : ( body : NoticeRequest ) => putFestivalNotice ( noticeId , body ) ,
6161 onSuccess : ( ) => {
6262 // 관련 쿼리들 무효화
6363 queryClient . invalidateQueries ( { queryKey : [ 'festival-notices' ] } ) ;
@@ -100,6 +100,7 @@ const FestivalInfoNoticeEditForm = ({
100100 < h3 className = "font-semibold mb-3" > 아래 빈칸을 모두 작성해주세요.</ h3 >
101101
102102 < TextInputWithCounter
103+ name = "title"
103104 value = { title }
104105 onChange = { ( e ) => setTitle ( e . target . value ) }
105106 placeholder = "공지사항 제목을 입력하세요"
@@ -115,6 +116,7 @@ const FestivalInfoNoticeEditForm = ({
115116 />
116117
117118 < TextInputWithCounter
119+ name = "content"
118120 value = { content }
119121 onChange = { ( e ) => setContent ( e . target . value ) }
120122 placeholder = "공지사항 내용을 입력하세요"
0 commit comments