Álvaro Valenzuela Valdes commited on
Commit ·
899401b
1
Parent(s): 5e5fa16
Fix: Added missing pagination state and itemsPerPage constant
Browse files
frontend/components/TenderSearch.tsx
CHANGED
|
@@ -28,6 +28,8 @@ export default function TenderSearch({ tenders, onSearch, onAnalyze, forceShowFo
|
|
| 28 |
});
|
| 29 |
const [showOnlyFollowed, setShowOnlyFollowed] = useState(forceShowFollowed);
|
| 30 |
const [isLoading, setIsLoading] = useState(false);
|
|
|
|
|
|
|
| 31 |
|
| 32 |
// Sync with forceShowFollowed prop
|
| 33 |
useEffect(() => {
|
|
|
|
| 28 |
});
|
| 29 |
const [showOnlyFollowed, setShowOnlyFollowed] = useState(forceShowFollowed);
|
| 30 |
const [isLoading, setIsLoading] = useState(false);
|
| 31 |
+
const [currentPage, setCurrentPage] = useState(1);
|
| 32 |
+
const itemsPerPage = 50;
|
| 33 |
|
| 34 |
// Sync with forceShowFollowed prop
|
| 35 |
useEffect(() => {
|