diff --git a/components/form/field/typeahead-opt-better.tsx b/components/form/field/typeahead-opt-better.tsx index 6b2bdf1..5c30dcf 100644 --- a/components/form/field/typeahead-opt-better.tsx +++ b/components/form/field/typeahead-opt-better.tsx @@ -270,7 +270,7 @@ export const TypeaheadOptionsBetter: FC<{ console.log({ result }); return result; }} - onCount={async () => { + onCount={async (params: any) => { const result: any = typeof onCount === "function" ? await onCount({ diff --git a/components/list/ListUI.tsx b/components/list/ListUI.tsx index c130839..ab92d9d 100644 --- a/components/list/ListUI.tsx +++ b/components/list/ListUI.tsx @@ -62,7 +62,7 @@ export const ListUI: React.FC = ({ name={name} content={content} onLoad={onLoad} - onCount={async () => { + onCount={async (params: any) => { const result = await onCount(); local.count = result; local.render(); diff --git a/components/list/ListUIClean.tsx b/components/list/ListUIClean.tsx index 77fe20a..74181c6 100644 --- a/components/list/ListUIClean.tsx +++ b/components/list/ListUIClean.tsx @@ -79,7 +79,7 @@ export const ListUIClean: React.FC = ({ name={name} content={content} onLoad={onLoad} - onCount={async () => { + onCount={async (params: any) => { const result = await onCount(); local.count = result; local.render(); diff --git a/components/tablelist/TableBetter.tsx b/components/tablelist/TableBetter.tsx index c3ed24b..f8a4d0d 100644 --- a/components/tablelist/TableBetter.tsx +++ b/components/tablelist/TableBetter.tsx @@ -261,7 +261,11 @@ export const TableEditBetter: React.FC = ({ } >
- {col?.header()} + + {typeof col?.header === "function" + ? col?.header() + : col.header} +
);