@applica-software-guru/react-admin 1.5.289 → 1.5.291

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
@@ -106,5 +106,5 @@
106
106
  "type": "module",
107
107
  "types": "dist/index.d.ts",
108
108
  "typings": "dist/index.d.ts",
109
- "version": "1.5.289"
109
+ "version": "1.5.291"
110
110
  }
@@ -17,7 +17,7 @@ const Pagination: FC<PaginationProps> = memo((props) => {
17
17
  const { isLoading, hasNextPage, page, perPage, total, setPage, setPerPage } = useListPaginationContext(props);
18
18
  const translate = useTranslate();
19
19
  const isSmall = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));
20
- const [currentPage, setCurrentPage] = useState(0); // Stato per la UI
20
+ const [currentPage, setCurrentPage] = useState(page - 1); // Stato per la UI
21
21
 
22
22
  const totalPages = useMemo(() => {
23
23
  return total != null ? Math.ceil(total / perPage) : undefined;
@@ -10,6 +10,7 @@ export * from './MainIcon';
10
10
  export * from './MenuPopover';
11
11
  export * from './Notification';
12
12
  export * from './Onboarding';
13
+ export * from './Pagination';
13
14
  export * from './ScrollTop';
14
15
  export * from './ScrollX';
15
16
  export * from './ShadowBox';
package/src/index.ts CHANGED
@@ -31,7 +31,6 @@ export {
31
31
  ListBase,
32
32
  ListToolbar,
33
33
  LoadingIndicator,
34
- Pagination,
35
34
  SimpleFormIterator as RaSimpleFormIterator,
36
35
  RecordContextProvider,
37
36
  ReferenceArrayField,