diff --git a/packages/filigran-ui/src/components/clients/data-table.tsx b/packages/filigran-ui/src/components/clients/data-table.tsx index 22cede9..fb3b495 100644 --- a/packages/filigran-ui/src/components/clients/data-table.tsx +++ b/packages/filigran-ui/src/components/clients/data-table.tsx @@ -300,7 +300,6 @@ const DraggableTableHeader = ({ const DragAlongCell = ({ cell, - isLoading, }: { cell: Cell isLoading?: boolean @@ -320,11 +319,7 @@ const DragAlongCell = ({ 'transition-width group relative z-0 opacity-100 transition-transform duration-200 ease-in-out', isDragging && 'z-10 opacity-80' )}> - {isLoading ? ( - - ) : ( - <>{flexRender(cell.column.columnDef.cell, cell.getContext())} - )} + <>{flexRender(cell.column.columnDef.cell, cell.getContext())} ) } @@ -424,7 +419,10 @@ const LoadingRows = ({table}: {table: TableType}) => { {Array(30) .fill({}) .map((_, index) => ( - + ))} ) @@ -437,8 +435,8 @@ const LoadingRow = ({table}: {table: TableType}) => { - {headerGroup.headers.map(() => ( - + {headerGroup.headers.map((_, index) => ( + ))} @@ -552,7 +550,6 @@ function GenericDataTable( ))}