diff --git a/apps/backoffice/src/app/features/certification/pages/CertificationPage.tsx b/apps/backoffice/src/app/features/certification/pages/CertificationPage.tsx index 7d2547dd0..a7ab26d0e 100644 --- a/apps/backoffice/src/app/features/certification/pages/CertificationPage.tsx +++ b/apps/backoffice/src/app/features/certification/pages/CertificationPage.tsx @@ -75,7 +75,7 @@ export function CertificationPage() { const locale = i18n.language as 'en' | 'am'; const { handleError } = useErrorHandler(); const { data, isFetching, isError, refetch } = useGetCertificationsQuery(); - const { setPageIndex, pageSize, paginate } = useServerTable({ pageSize: 25 }); + const { setPageIndex, pageSize, paginate } = useServerTable(); const [createCert, { isLoading: isCreating }] = useCreateCertificationMutation(); const [updateCert, { isLoading: isUpdating }] = useUpdateCertificationMutation(); const [deleteCert] = useDeleteCertificationMutation(); diff --git a/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx b/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx index 284c991eb..086ade3f7 100644 --- a/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx +++ b/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx @@ -355,7 +355,7 @@ export function ExamPage() { const locale = i18n.language as "en" | "am"; const { data: certRes } = useGetCertificationsQuery(); const { data, isFetching, isError, refetch } = useGetExamsQuery(); - const { setPageIndex, pageSize, paginate } = useServerTable({ pageSize: 25 }); + const { setPageIndex, pageSize, paginate } = useServerTable(); const [createExam, { isLoading: isCreating }] = useCreateExamMutation(); const [updateExam, { isLoading: isUpdating }] = useUpdateExamMutation(); const [deleteExam] = useDeleteExamMutation(); diff --git a/apps/backoffice/src/app/features/question/pages/QuestionPage.tsx b/apps/backoffice/src/app/features/question/pages/QuestionPage.tsx index aa7210240..2e1dcaf8e 100644 --- a/apps/backoffice/src/app/features/question/pages/QuestionPage.tsx +++ b/apps/backoffice/src/app/features/question/pages/QuestionPage.tsx @@ -103,7 +103,7 @@ export function QuestionPage() { const { handleError } = useErrorHandler(); const { data: certRes } = useGetCertificationsQuery(); const { data, isFetching, isError, refetch } = useGetQuestionsQuery(); - const { setPageIndex, pageSize, paginate } = useServerTable({ pageSize: 25 }); + const { setPageIndex, pageSize, paginate } = useServerTable(); const [createQ, { isLoading: isCreating }] = useCreateQuestionMutation(); const [updateQ, { isLoading: isUpdating }] = useUpdateQuestionMutation(); const [deleteQ] = useDeleteQuestionMutation(); diff --git a/apps/backoffice/src/app/features/result/pages/ResultPage.tsx b/apps/backoffice/src/app/features/result/pages/ResultPage.tsx index 5845ccda7..927928202 100644 --- a/apps/backoffice/src/app/features/result/pages/ResultPage.tsx +++ b/apps/backoffice/src/app/features/result/pages/ResultPage.tsx @@ -99,7 +99,7 @@ export function ResultPage() { const { handleError } = useErrorHandler(); const { data: examRes } = useGetExamsQuery(); const { data, isFetching, isError, refetch } = useGetResultsQuery(); - const { setPageIndex, pageSize, paginate } = useServerTable({ pageSize: 25 }); + const { setPageIndex, pageSize, paginate } = useServerTable(); const [fetchDetail, { data: detailResult, isFetching: isDetailLoading }] = useLazyGetResultQuery(); const exams = examRes?.items ?? []; diff --git a/apps/backoffice/src/app/features/seafarer-registry/pages/SeafarerRegistryPage.tsx b/apps/backoffice/src/app/features/seafarer-registry/pages/SeafarerRegistryPage.tsx index d1da803fa..1aadae83a 100644 --- a/apps/backoffice/src/app/features/seafarer-registry/pages/SeafarerRegistryPage.tsx +++ b/apps/backoffice/src/app/features/seafarer-registry/pages/SeafarerRegistryPage.tsx @@ -37,7 +37,7 @@ export function SeafarerRegistryPage() { method: 'GET', params: { q: 'i=profession,address&t=200' }, }); - const { setPageIndex, pageSize, paginate } = useServerTable({ pageSize: 25 }); + const { setPageIndex, pageSize, paginate } = useServerTable(); const items = (data?.items ?? []).filter((p) => { if (!search.trim()) return true;