|
|
|
@ -123,23 +123,7 @@ const BasicTable = ({ |
|
|
|
|
useSortBy, |
|
|
|
|
useExpanded, |
|
|
|
|
usePagination, |
|
|
|
|
useRowSelect, |
|
|
|
|
(hooks) => { |
|
|
|
|
hooks.visibleColumns.push((columns) => { |
|
|
|
|
return [ |
|
|
|
|
{ |
|
|
|
|
id: "selection", |
|
|
|
|
Header: ({ getToggleAllRowsSelectedProps }) => ( |
|
|
|
|
<Checkbox {...getToggleAllRowsSelectedProps()} /> |
|
|
|
|
), |
|
|
|
|
Cell: ({ row }) => ( |
|
|
|
|
<Checkbox {...row.getToggleRowSelectedProps()} /> |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
...columns, |
|
|
|
|
]; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
useRowSelect |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const { globalFilter, pageIndex, pageSize } = state; |
|
|
|
@ -270,7 +254,7 @@ const BasicTable = ({ |
|
|
|
|
<tr |
|
|
|
|
{...row.getRowProps()} |
|
|
|
|
style={{ |
|
|
|
|
backgroundColor: isEven(idx) ? "#F9F9F9" : "fff", |
|
|
|
|
backgroundColor: isEven(idx) ? "#F9F9F9" : "#fff", |
|
|
|
|
}} |
|
|
|
|
// className={isEven(idx) ? "bg-gray-600" : "bg-white"}
|
|
|
|
|
//
|
|
|
|
|