From 6e0a8b5e4d90f8c3dff86cdb251f96b2f48ef195 Mon Sep 17 00:00:00 2001 From: faisolavolut Date: Wed, 26 Feb 2025 22:58:02 +0700 Subject: [PATCH] fix: update onTab prop type to accept any value for improved flexibility --- components/tablelist/TableUI.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tablelist/TableUI.tsx b/components/tablelist/TableUI.tsx index 4727c0c..f58ee26 100644 --- a/components/tablelist/TableUI.tsx +++ b/components/tablelist/TableUI.tsx @@ -10,7 +10,7 @@ export interface TableUIProps extends TableListProps { tabHeader?: ((local: any) => React.ReactNode) | React.ReactNode; modeTab?: "default" | "only-title"; tab?: { id: string; name: string; count?: number | null }[]; // ✅ Update count menjadi nullable - onTab?: (tabId: string | null | undefined) => void; + onTab?: (tabId: any) => void; breadcrumb?: { label: string; href: string }[]; title?: string; ready?: boolean;