tw-react-components 0.0.168 → 0.0.169
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/index.esm.js +2 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -748,6 +748,8 @@ function useOutsideClick(ref, callback) {
|
|
|
748
748
|
|
|
749
749
|
function usePagination(currentIndex, totalPages) {
|
|
750
750
|
return useMemo(() => {
|
|
751
|
+
if (totalPages === 0)
|
|
752
|
+
return [];
|
|
751
753
|
const result = [];
|
|
752
754
|
result.push(Math.min(currentIndex, totalPages));
|
|
753
755
|
if (totalPages > 7 && currentIndex > 4) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tw-react-components",
|
|
3
3
|
"description": "A set of React components build with TailwindCSS to make a nice dashboard.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.169",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://bacali95.github.io/tw-react-components",
|
|
7
7
|
"type": "module",
|