mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-09-24 19:20:28 +01:00
- Major update for react-table - Fix Hosts menu staying around after selecting a menu item
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import type { Table as ReactTable, RowData } from "@tanstack/react-table";
|
|
import type { Features } from "./features";
|
|
|
|
interface Props<TData extends RowData> {
|
|
tableInstance: ReactTable<Features, TData>;
|
|
}
|
|
function EmptyRow<TData extends RowData>({ tableInstance }: Props<TData>) {
|
|
return (
|
|
<tr>
|
|
<td colSpan={tableInstance.getVisibleFlatColumns().length}>
|
|
<p className="text-center">There are no items</p>
|
|
</td>
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
export { EmptyRow };
|