Starting working on settings Page.

This commit is contained in:
charles-gauthereau
2024-11-16 17:05:55 +01:00
parent 9727eef581
commit b8218dcf85
11 changed files with 126 additions and 14 deletions
@@ -18,7 +18,7 @@ export function DataTableWithPagination<TData, TValue>({columns, data}: DataTabl
const [sorting, setSorting] = useState<SortingState>([])
const table = useReactTable({
data,
data: data,
columns,
getCoreRowModel: getCoreRowModel(),
getPaginationRowModel: getPaginationRowModel(),
+1 -2
View File
@@ -6,7 +6,6 @@ export type dataTableProps = {
}
export const DataTable = ({table}: dataTableProps) => {
return (
<Table>
<TableHeader>
@@ -43,7 +42,7 @@ export const DataTable = ({table}: dataTableProps) => {
))
) : (
<TableRow>
<TableCell colSpan={table.columns.length} className="h-24 text-center">
<TableCell colSpan={table.getAllColumns().length} className="h-24 text-center">
No results.
</TableCell>
</TableRow>