From 5b5113de6ede5ac52f9bbbc43ee7c618d818f5c0 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 20 Apr 2026 01:13:51 +0700 Subject: [PATCH] fix: add page and pageSize --- .../pages/report/marketing/filter/DailyMarketingFilter.ts | 4 ++++ .../pages/report/marketing/filter/HppPerKandangFilter.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/components/pages/report/marketing/filter/DailyMarketingFilter.ts b/src/components/pages/report/marketing/filter/DailyMarketingFilter.ts index 85c765a9..600a7f7d 100644 --- a/src/components/pages/report/marketing/filter/DailyMarketingFilter.ts +++ b/src/components/pages/report/marketing/filter/DailyMarketingFilter.ts @@ -1,6 +1,8 @@ import * as yup from 'yup'; export type DailyMarketingReportFilterType = { + page?: number; + pageSize?: number; search: string | null; area_id: string | null; location_id: string | null; @@ -14,6 +16,8 @@ export type DailyMarketingReportFilterType = { }; export const DailyMarketingReportFilterSchema = yup.object({ + page: yup.number().nullable(), + pageSize: yup.number().nullable(), search: yup.string().nullable(), area_id: yup.string().nullable(), location_id: yup.string().nullable(), diff --git a/src/components/pages/report/marketing/filter/HppPerKandangFilter.ts b/src/components/pages/report/marketing/filter/HppPerKandangFilter.ts index 57d2dcd2..209f99a7 100644 --- a/src/components/pages/report/marketing/filter/HppPerKandangFilter.ts +++ b/src/components/pages/report/marketing/filter/HppPerKandangFilter.ts @@ -1,6 +1,8 @@ import * as yup from 'yup'; export type HppPerKandangFilterType = { + page?: number; + pageSize?: number; area_id: string | null; location_id: string | null; kandang_id: string | null; @@ -12,6 +14,8 @@ export type HppPerKandangFilterType = { }; export const HppPerKandangFilterSchema = yup.object({ + page: yup.number().nullable(), + pageSize: yup.number().nullable(), area_id: yup.string().nullable(), location_id: yup.string().nullable(), kandang_id: yup.string().nullable(),