From cfb287490d353166cf0a3db7105d8002cc473f00 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 01:38:55 +0300 Subject: feat: add DataTable component --- src/components/ListTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/ListTable.tsx') diff --git a/src/components/ListTable.tsx b/src/components/ListTable.tsx index 9faa0ad..9315a27 100644 --- a/src/components/ListTable.tsx +++ b/src/components/ListTable.tsx @@ -8,13 +8,13 @@ interface Field { interface Props { items: any[]; fields: Field[]; - handleRowClick?: (index: number) => any; + handleRowClick?: (index: number) => void; } const ListTable: React.FC = ({ items, fields, handleRowClick = () => {} }) => { return ( - +
{fields.map(field => )} -- cgit v1.2.3
{field.label}