diff --git a/public/install_demo b/public/install_demo deleted file mode 100644 index 45adbb22..00000000 --- a/public/install_demo +++ /dev/null @@ -1 +0,0 @@ -.gitkeep \ No newline at end of file diff --git a/react-admin/src/components/AvoRedTable.tsx b/react-admin/src/components/AvoRedTable.tsx index 3bea9682..220fd1a2 100644 --- a/react-admin/src/components/AvoRedTable.tsx +++ b/react-admin/src/components/AvoRedTable.tsx @@ -1,8 +1,8 @@ import {Menu, MenuButton, MenuItem, MenuItems, Transition} from "@headlessui/react" import { - ChevronDownIcon, - ChevronRightIcon, - ChevronUpIcon, + ChevronDownIcon, + ChevronRightIcon, + ChevronUpIcon, ExclamationTriangleIcon, } from "@heroicons/react/24/solid"; import {Column, flexRender, Table} from "@tanstack/react-table" import {ChevronLeftIcon} from "@heroicons/react/20/solid"; @@ -96,31 +96,64 @@ const AvoRedTable = (props: Props) => { ))} - {props.table.getRowModel().rows.map(row => ( - - {row.getVisibleCells().map(cell => ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} - - ))} + + {(props.table.getRowModel().rows.length <= 0) ? ( + + +
+ + + Sorry no records found + +
+ - ))} + ) : ( + <> + {props.table.getRowModel().rows.map(row => ( + + {row.getVisibleCells().map(cell => ( + + {flexRender(cell.column.columnDef.cell, cell.getContext())} + + ))} + + ))} + + )} + +