From d3201332fb71f6553284a48a4304837e5fde40bc Mon Sep 17 00:00:00 2001 From: Yejiin21 <101397075+Yejiin21@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:14:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B0=B8=EA=B0=80=EC=9E=90=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=A1=B0=ED=9A=8C=20size=20=EC=A0=9C=ED=95=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/dashboard/hook/useParticipants.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/features/dashboard/hook/useParticipants.ts b/src/features/dashboard/hook/useParticipants.ts index a90e14ab..a66ace3c 100644 --- a/src/features/dashboard/hook/useParticipants.ts +++ b/src/features/dashboard/hook/useParticipants.ts @@ -5,11 +5,7 @@ import { ApiResponse } from '../../../shared/types/api/apiResponse'; import { AxiosError } from 'axios'; import { approveParticipants } from '../../../features/dashboard/api/participants'; -export const useParticipants = ( - tags: string = 'all', - page: number = 0, - size: number = 10 -) => { +export const useParticipants = (tags: string = 'all', page: number = 0, size: number = 300) => { const { id } = useParams(); const eventId = Number(id); @@ -31,15 +27,13 @@ export const useParticipants = ( }; export const useApproveParticipants = (orderId: number) => { - const queryClient = useQueryClient(); return useMutation, AxiosError, { orderId: number }>({ mutationFn: () => approveParticipants({ orderId }), onSuccess: () => { queryClient.invalidateQueries({ - predicate: (query) => - Array.isArray(query.queryKey) && query.queryKey[0] === 'participants', + predicate: query => Array.isArray(query.queryKey) && query.queryKey[0] === 'participants', }); }, });