From c8407f41c316cf1a86461be6817dcd60edfdf4e1 Mon Sep 17 00:00:00 2001 From: pakxe Date: Mon, 16 Sep 2024 16:44:22 +0900 Subject: [PATCH] =?UTF-8?q?rename:=20=EA=B7=9C=EC=B9=99=EC=97=90=20?= =?UTF-8?q?=EB=A7=9E=EB=8F=84=EB=A1=9D=20=EC=BF=BC=EB=A6=AC=20hook?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/queries/useRequestPostEvent.ts | 4 ++-- client/src/hooks/useSetEventPasswordPage.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/hooks/queries/useRequestPostEvent.ts b/client/src/hooks/queries/useRequestPostEvent.ts index 5767738ec..d2a5bc115 100644 --- a/client/src/hooks/queries/useRequestPostEvent.ts +++ b/client/src/hooks/queries/useRequestPostEvent.ts @@ -7,10 +7,10 @@ interface PostEventMutationProps { password: string; } -const usePostEvent = () => { +const useRequestPostEvent = () => { return useMutation({ mutationFn: ({eventName, password}: PostEventMutationProps) => requestPostNewEvent({eventName, password}), }); }; -export default usePostEvent; +export default useRequestPostEvent; diff --git a/client/src/hooks/useSetEventPasswordPage.ts b/client/src/hooks/useSetEventPasswordPage.ts index 17079f3a9..786193047 100644 --- a/client/src/hooks/useSetEventPasswordPage.ts +++ b/client/src/hooks/useSetEventPasswordPage.ts @@ -6,7 +6,7 @@ import validateEventPassword from '@utils/validate/validateEventPassword'; import {ROUTER_URLS} from '@constants/routerUrls'; import RULE from '@constants/rule'; -import usePostEvent from './queries/useRequestPostEvent'; +import useRequestPostEvent from './queries/useRequestPostEvent'; const useSetEventPasswordPage = () => { const [eventName, setEventName] = useState(''); @@ -15,7 +15,7 @@ const useSetEventPasswordPage = () => { const [canSubmit, setCanSubmit] = useState(false); const navigate = useNavigate(); const location = useLocation(); - const {mutate: postEvent, isPending: isPostEventPending} = usePostEvent(); + const {mutate: postEvent, isPending: isPostEventPending} = useRequestPostEvent(); useEffect(() => { if (!location.state) {