@campxdev/react-blueprint 1.2.2 → 1.2.4

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
7
- "@campxdev/campx-web-utils":"0.1.5",
7
+ "@campxdev/campx-web-utils": "0.1.5",
8
8
  "@emotion/react": "^11.11.4",
9
9
  "@emotion/styled": "^11.11.5",
10
10
  "@mui/icons-material": "^5.15.20",
@@ -21,6 +21,7 @@
21
21
  "@types/react": "^18.0.0",
22
22
  "@types/react-dom": "^18.3.0",
23
23
  "@types/react-router-dom": "^5.3.3",
24
+ "@types/uuid": "^10.0.0",
24
25
  "axios": "^1.7.2",
25
26
  "date-fns": "^3.6.0",
26
27
  "framer-motion": "^11.2.9",
@@ -3,9 +3,9 @@ import {
3
3
  DataGrid as MuiDataGrid,
4
4
  DataGridProps as MuiDataGridProps,
5
5
  } from '@mui/x-data-grid';
6
+ import { v4 } from 'uuid';
6
7
  import { DataGridContainer } from '../styles';
7
8
  import { TablePagination } from './TablePagination';
8
- import { v4 } from 'uuid';
9
9
 
10
10
  export type DataTableProps = {
11
11
  limit?: number;
@@ -38,7 +38,7 @@ export const DataTable = (props: DataTableProps) => {
38
38
  return <></>;
39
39
  }
40
40
  const pages = Math.ceil(totalCount / limit);
41
- const currentPage = Math.ceil(offset / limit) || 1;
41
+ const currentPage = Math.ceil(offset / limit) + 1;
42
42
  return (
43
43
  <TablePagination
44
44
  count={pages}