@quillsql/react 2.16.9 → 2.16.10
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/dist/index.cjs +7 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -35014,7 +35014,7 @@ function QuillTableDashboardComponent({
|
|
|
35014
35014
|
const [theme] = (0, import_react29.useContext)(ThemeContext);
|
|
35015
35015
|
const [initialLoad, setInitialLoad] = (0, import_react29.useState)(true);
|
|
35016
35016
|
const { downloadCSV: downloadCSV2 } = useExport(report?.id);
|
|
35017
|
-
const [page, setPage] = (0, import_react29.useState)(0);
|
|
35017
|
+
const [page, setPage] = (0, import_react29.useState)(report?.pagination?.page ?? 0);
|
|
35018
35018
|
(0, import_react29.useEffect)(() => {
|
|
35019
35019
|
if (!isLoading) {
|
|
35020
35020
|
setInitialLoad(false);
|
|
@@ -35025,6 +35025,11 @@ function QuillTableDashboardComponent({
|
|
|
35025
35025
|
setPage(0);
|
|
35026
35026
|
}
|
|
35027
35027
|
}, [rowCountIsLoading]);
|
|
35028
|
+
(0, import_react29.useEffect)(() => {
|
|
35029
|
+
if (typeof report?.pagination?.page === "number") {
|
|
35030
|
+
setPage(report.pagination.page);
|
|
35031
|
+
}
|
|
35032
|
+
}, [report?.pagination?.page]);
|
|
35028
35033
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
35029
35034
|
"div",
|
|
35030
35035
|
{
|
|
@@ -35107,7 +35112,7 @@ function QuillTableDashboardComponent({
|
|
|
35107
35112
|
onSortChange: (sort) => {
|
|
35108
35113
|
onSortChange && onSortChange(sort);
|
|
35109
35114
|
},
|
|
35110
|
-
currentPage:
|
|
35115
|
+
currentPage: page,
|
|
35111
35116
|
sort: report?.sort
|
|
35112
35117
|
}
|
|
35113
35118
|
)
|
package/dist/index.js
CHANGED
|
@@ -35099,7 +35099,7 @@ function QuillTableDashboardComponent({
|
|
|
35099
35099
|
const [theme] = useContext15(ThemeContext);
|
|
35100
35100
|
const [initialLoad, setInitialLoad] = useState17(true);
|
|
35101
35101
|
const { downloadCSV: downloadCSV2 } = useExport(report?.id);
|
|
35102
|
-
const [page, setPage] = useState17(0);
|
|
35102
|
+
const [page, setPage] = useState17(report?.pagination?.page ?? 0);
|
|
35103
35103
|
useEffect15(() => {
|
|
35104
35104
|
if (!isLoading) {
|
|
35105
35105
|
setInitialLoad(false);
|
|
@@ -35110,6 +35110,11 @@ function QuillTableDashboardComponent({
|
|
|
35110
35110
|
setPage(0);
|
|
35111
35111
|
}
|
|
35112
35112
|
}, [rowCountIsLoading]);
|
|
35113
|
+
useEffect15(() => {
|
|
35114
|
+
if (typeof report?.pagination?.page === "number") {
|
|
35115
|
+
setPage(report.pagination.page);
|
|
35116
|
+
}
|
|
35117
|
+
}, [report?.pagination?.page]);
|
|
35113
35118
|
return /* @__PURE__ */ jsxs35(
|
|
35114
35119
|
"div",
|
|
35115
35120
|
{
|
|
@@ -35192,7 +35197,7 @@ function QuillTableDashboardComponent({
|
|
|
35192
35197
|
onSortChange: (sort) => {
|
|
35193
35198
|
onSortChange && onSortChange(sort);
|
|
35194
35199
|
},
|
|
35195
|
-
currentPage:
|
|
35200
|
+
currentPage: page,
|
|
35196
35201
|
sort: report?.sort
|
|
35197
35202
|
}
|
|
35198
35203
|
)
|