From 035ddba1993b27574ed5c9166bca457df8e98646 Mon Sep 17 00:00:00 2001 From: Prateek Kumar <89418989+prateekkumaroriginal@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:04:25 +0530 Subject: [PATCH] Fix Pagination error (#261) * Fix Pagination error * Fix prettier format --- src/app/jobs/page.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/app/jobs/page.tsx b/src/app/jobs/page.tsx index c0e6996f..44a3290d 100644 --- a/src/app/jobs/page.tsx +++ b/src/app/jobs/page.tsx @@ -3,14 +3,26 @@ import Loader from '@/components/loader'; import APP_PATHS from '@/config/path.config'; import JobFilters from '@/layouts/job-filters'; import JobsHeader from '@/layouts/jobs-header'; -import { JobQuerySchemaType } from '@/lib/validators/jobs.validator'; +import { + JobQuerySchema, + JobQuerySchemaType, +} from '@/lib/validators/jobs.validator'; import { Suspense } from 'react'; + const page = async ({ searchParams }: { searchParams: JobQuerySchemaType }) => { + const validatedSearchParams = JobQuerySchema.parse(searchParams); + return ( -
- +
+
- + @@ -18,7 +30,7 @@ const page = async ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
} > - +