File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/features/dashboard/hook Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ import { ApiResponse } from '../../../shared/types/api/apiResponse';
55import { AxiosError } from 'axios' ;
66import { approveParticipants } from '../../../features/dashboard/api/participants' ;
77
8- export const useParticipants = (
9- tags : string = 'all' ,
10- page : number = 0 ,
11- size : number = 10
12- ) => {
8+ export const useParticipants = ( tags : string = 'all' , page : number = 0 , size : number = 300 ) => {
139 const { id } = useParams ( ) ;
1410 const eventId = Number ( id ) ;
1511
@@ -31,15 +27,13 @@ export const useParticipants = (
3127} ;
3228
3329export const useApproveParticipants = ( orderId : number ) => {
34-
3530 const queryClient = useQueryClient ( ) ;
3631
3732 return useMutation < ApiResponse < string > , AxiosError , { orderId : number } > ( {
3833 mutationFn : ( ) => approveParticipants ( { orderId } ) ,
3934 onSuccess : ( ) => {
4035 queryClient . invalidateQueries ( {
41- predicate : ( query ) =>
42- Array . isArray ( query . queryKey ) && query . queryKey [ 0 ] === 'participants' ,
36+ predicate : query => Array . isArray ( query . queryKey ) && query . queryKey [ 0 ] === 'participants' ,
4337 } ) ;
4438 } ,
4539 } ) ;
You can’t perform that action at this time.
0 commit comments