Show message if table data is empty

This commit is contained in:
navaneeth 2021-05-26 18:01:33 +05:30
parent f0c81f289f
commit 0d0ae69b25

View file

@ -526,6 +526,11 @@ export function Table({
</tr>
))}
</thead>
{!loadingState && page.length === 0 &&
<center className="w-100"><div className="py-5"> no data </div></center>
}
{!loadingState && (
<tbody {...getTableBodyProps()}>
{console.log('page', page)}