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