gbs-add-block 0.0.97 → 0.0.98
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# GBS Building Blocks 2.0 (v0.0.
|
|
1
|
+
# GBS Building Blocks 2.0 (v0.0.98)
|
|
2
2
|
|
|
3
3
|
Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
|
|
|
6
6
|
|
|
7
7
|
For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://blackmax-designs.gitbook.io/building-block-v2.0)
|
|
8
8
|
|
|
9
|
-
## What's New 🎉 (Ver 0.0.
|
|
9
|
+
## What's New 🎉 (Ver 0.0.98)
|
|
10
10
|
|
|
11
11
|
- Updated for bug fixes.
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -150,7 +150,11 @@ export const GridProvider: React.FC<{
|
|
|
150
150
|
: Math.ceil(dataSource.length / pageSettings.pageNumber);
|
|
151
151
|
|
|
152
152
|
setTotalPages(totalPages);
|
|
153
|
-
|
|
153
|
+
if (!lazy) {
|
|
154
|
+
setPageEnd(Math.min(10, totalPages));
|
|
155
|
+
} else {
|
|
156
|
+
setPageEnd(Math.min(pageStart + 10, totalPages));
|
|
157
|
+
}
|
|
154
158
|
} else if (typeof dataSource === "string") {
|
|
155
159
|
await getGridData();
|
|
156
160
|
}
|