@teamturing/react-kit 2.19.34 → 2.19.35
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.js +2 -2
- package/esm/core/Pagination/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -23543,7 +23543,7 @@ const Pagination = ({
|
|
|
23543
23543
|
previousPageDirectionProps: {
|
|
23544
23544
|
type: 'button',
|
|
23545
23545
|
onClick: () => onPreviousClick(currentPageIndex),
|
|
23546
|
-
disabled: currentPageIndex === 0
|
|
23546
|
+
disabled: pages.length === 0 || currentPageIndex === 0
|
|
23547
23547
|
}
|
|
23548
23548
|
}), !isTruncationNeeded ? pages.map(({
|
|
23549
23549
|
page,
|
|
@@ -23581,7 +23581,7 @@ const Pagination = ({
|
|
|
23581
23581
|
nextPageDirectionProps: {
|
|
23582
23582
|
type: 'button',
|
|
23583
23583
|
onClick: () => onNextClick(currentPageIndex),
|
|
23584
|
-
disabled: currentPageIndex === totalPageCount - 1
|
|
23584
|
+
disabled: pages.length === 0 || currentPageIndex === totalPageCount - 1
|
|
23585
23585
|
}
|
|
23586
23586
|
})]
|
|
23587
23587
|
});
|
|
@@ -65,7 +65,7 @@ const Pagination = ({
|
|
|
65
65
|
previousPageDirectionProps: {
|
|
66
66
|
type: 'button',
|
|
67
67
|
onClick: () => onPreviousClick(currentPageIndex),
|
|
68
|
-
disabled: currentPageIndex === 0
|
|
68
|
+
disabled: pages.length === 0 || currentPageIndex === 0
|
|
69
69
|
}
|
|
70
70
|
}), !isTruncationNeeded ? pages.map(({
|
|
71
71
|
page,
|
|
@@ -103,7 +103,7 @@ const Pagination = ({
|
|
|
103
103
|
nextPageDirectionProps: {
|
|
104
104
|
type: 'button',
|
|
105
105
|
onClick: () => onNextClick(currentPageIndex),
|
|
106
|
-
disabled: currentPageIndex === totalPageCount - 1
|
|
106
|
+
disabled: pages.length === 0 || currentPageIndex === totalPageCount - 1
|
|
107
107
|
}
|
|
108
108
|
})]
|
|
109
109
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.35",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react-textarea-autosize": "^8.5.3",
|
|
66
66
|
"styled-system": "^5.1.5"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "7021ff834f226ee140bdc721cd481b490fd2efa5"
|
|
69
69
|
}
|