mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 22:05:15 +00:00
React
This commit is contained in:
16
frontend/src/components/Table/EmptyRow.tsx
Normal file
16
frontend/src/components/Table/EmptyRow.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { Table as ReactTable } from "@tanstack/react-table";
|
||||
|
||||
interface Props {
|
||||
tableInstance: ReactTable<any>;
|
||||
}
|
||||
function EmptyRow({ tableInstance }: Props) {
|
||||
return (
|
||||
<tr>
|
||||
<td colSpan={tableInstance.getVisibleFlatColumns().length}>
|
||||
<p className="text-center">There are no items</p>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
export { EmptyRow };
|
||||
Reference in New Issue
Block a user