@snapdragonsnursery/react-components 1.1.36 → 1.1.38
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 +1 -1
- package/src/ChildSearchPage.jsx +5 -14
package/package.json
CHANGED
package/src/ChildSearchPage.jsx
CHANGED
|
@@ -424,7 +424,7 @@ const ChildSearchPage = ({
|
|
|
424
424
|
{title}
|
|
425
425
|
</h1>
|
|
426
426
|
{multiSelect && (
|
|
427
|
-
<div className="mt-4 flex items-center space-x-2">
|
|
427
|
+
<div className="mt-4 flex items-center space-x-2" style={{ paddingBottom: '20px' }}>
|
|
428
428
|
<span className="px-3 py-1 text-sm bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 rounded-full">
|
|
429
429
|
{selectedChildrenState.length} selected
|
|
430
430
|
{maxSelections && ` / ${maxSelections}`}
|
|
@@ -745,14 +745,9 @@ const ChildSearchPage = ({
|
|
|
745
745
|
{/* Pagination */}
|
|
746
746
|
{(pagination.totalCount > 0 || children.length > 0) && (
|
|
747
747
|
<div className="px-6 py-8 border-t border-gray-200 dark:border-gray-700" style={{ padding: '32px 24px' }}>
|
|
748
|
-
{/* Pagination
|
|
749
|
-
|
|
750
|
-
<div className="
|
|
751
|
-
Page {pagination.page} of {pagination.totalPages || 1}
|
|
752
|
-
</div>
|
|
753
|
-
|
|
754
|
-
{/* Pagination Controls */}
|
|
755
|
-
{(pagination.totalPages > 1 || children.length > 0) && (
|
|
748
|
+
{/* Pagination Controls */}
|
|
749
|
+
{(pagination.totalPages > 1 || children.length > 0) && (
|
|
750
|
+
<div className="flex justify-center">
|
|
756
751
|
<Pagination>
|
|
757
752
|
<PaginationContent>
|
|
758
753
|
<PaginationItem>
|
|
@@ -840,12 +835,8 @@ const ChildSearchPage = ({
|
|
|
840
835
|
</PaginationItem>
|
|
841
836
|
</PaginationContent>
|
|
842
837
|
</Pagination>
|
|
843
|
-
)}
|
|
844
|
-
|
|
845
|
-
<div className="text-sm text-gray-600 dark:text-gray-400">
|
|
846
|
-
{pagination.totalCount || children.length} total children
|
|
847
838
|
</div>
|
|
848
|
-
|
|
839
|
+
)}
|
|
849
840
|
</div>
|
|
850
841
|
)}
|
|
851
842
|
</>
|