@shipfox/react-ui 0.31.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ export function DataTable({ columns, data, pagination = true, pageSize = 10, pag
71
71
  getCoreRowModel: getCoreRowModel(),
72
72
  getFilteredRowModel: getFilteredRowModel(),
73
73
  getSortedRowModel: getSortedRowModel(),
74
- getPaginationRowModel: isPaginationNeeded ? getPaginationRowModel() : undefined,
74
+ getPaginationRowModel: pagination ? getPaginationRowModel() : undefined,
75
75
  enableRowSelection: showSelectedCount,
76
76
  onSortingChange: setSorting,
77
77
  onColumnFiltersChange: setColumnFilters,
@@ -83,7 +83,7 @@ export function DataTable({ columns, data, pagination = true, pageSize = 10, pag
83
83
  columnFilters,
84
84
  columnVisibility,
85
85
  rowSelection,
86
- pagination: isPaginationNeeded ? paginationState : undefined
86
+ pagination: pagination ? paginationState : undefined
87
87
  }
88
88
  });
89
89
  const rowModel = table.getRowModel();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/react-ui",
3
3
  "license": "MIT",
4
- "version": "0.31.0",
4
+ "version": "0.31.1",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",