diff --git a/web-app/src/pages/PatientsPage.jsx b/web-app/src/pages/PatientsPage.jsx index 6147602..9496f51 100644 --- a/web-app/src/pages/PatientsPage.jsx +++ b/web-app/src/pages/PatientsPage.jsx @@ -5,6 +5,7 @@ import { useAuth } from "../AuthContext.jsx"; import getAllPatients from "../api/GetAllPatients.jsx"; import PatientListCard from "../components/PatientListCard.jsx"; +const { Search } = Input; const { Option } = Select; const PatientsPage = () => { @@ -14,6 +15,9 @@ const PatientsPage = () => { const [patients, setPatients] = useState([]); const [error, setError] = useState(null); + const [current, setCurrent] = useState(1); + const [pageSize, setPageSize] = useState(10); + useEffect(() => { const fetchPatients = async () => { if (!user || !user.token) return; @@ -45,7 +49,7 @@ const PatientsPage = () => {