This commit is contained in:
Ahmed Bouhuolia
2020-03-19 17:02:37 +02:00
parent 73711384f6
commit ab81f4be40
57 changed files with 3734 additions and 515 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTable, usePagination } from 'react-table'
import { useTable, useExpanded, usePagination } from 'react-table'
export default function DataTable({
columns,
@@ -32,8 +32,10 @@ export default function DataTable({
// This means we'll also have to provide our own
// pageCount.
// pageCount: controlledPageCount,
getSubRows: row => row.children,
},
usePagination
useExpanded,
usePagination,
);
return (