- {filterOptions &&
- filterOptions.map((filterOption) => (
-
-
- ))}
+
+ {filterOptions &&
+ filterOptions.map((filterOption) => (
+
+
+ ))}
- {tableData.length > 0 ? (
+ {headerGroups.length > 0 ? (
{headerGroups.map((headerGroup) => (
@@ -291,35 +293,41 @@ const Table = ({
))}
-
- {page.map((row) => {
- prepareRow(row)
- return (
-
- {columns.map((column, i) => {
- return (
-
- {column.render ? (
- column.render(row.original.id) ? (
- column.render(row.original.id)
+ {tableData.length > 0 ? (
+ |
+ {page.map((row) => {
+ prepareRow(row)
+ return (
+
+ {columns.map((column, i) => {
+ return (
+
+ {column.render ? (
+ column.render(row.original.id) ? (
+ column.render(row.original.id)
+ ) : (
+ None
+ )
+ ) : row.original[column.name] ? (
+ row.original[column.name]
) : (
None
- )
- ) : row.original[column.name] ? (
- row.original[column.name]
- ) : (
- None
- )}
- |
- )
- })}
-
- )
- })}
-
+ )}
+
+ )
+ })}
+
+ )
+ })}
+
+ ) : data.length === 0 ? (
+ No items to show
+ ) : (
+ No matches were found. Please change your filters.
+ )}
- ) : data.length === 0 ? (
No items to show
) : (
-
No matches were found. Please change your filters.
+ ) : (
+
Nothing to Show
)}
{pageOptions.length > 1 && (
@@ -334,7 +342,7 @@ const Table = ({