diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:38:55 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:38:55 +0300 |
commit | cfb287490d353166cf0a3db7105d8002cc473f00 (patch) | |
tree | 779cdbd01757ac46b565422c32946e52213a4fcc /src/components/ListTable.tsx | |
parent | 05ccf76dbbb54e52ae81a469f91b3660057058dc (diff) | |
download | commercel-ui-cfb287490d353166cf0a3db7105d8002cc473f00.tar.gz |
feat: add DataTable component
Diffstat (limited to 'src/components/ListTable.tsx')
-rw-r--r-- | src/components/ListTable.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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<Props> = ({ items, fields, handleRowClick = () => {} }) => { return ( - <table className="m-2 table-auto w-full"> + <table className="table-auto w-full"> <thead> <tr className="border-b select-none"> {fields.map(field => <th>{field.label}</th>)} |